mirror of
https://github.com/e107inc/e107.git
synced 2025-08-26 07:44:49 +02:00
strftime() added to php_compatibility_handler.php and all references updated. README updated. dateAlternativeTest updated to pass on Windows. (TBD)
This commit is contained in:
@@ -96,8 +96,8 @@ if (isset($_POST['clientsubmit']))
|
||||
{
|
||||
while ($row = $sql->fetch())
|
||||
{
|
||||
$start_date = ($row['banner_startdate'] ? e_date::strftime("%d %B %Y", $row['banner_startdate']) : BANNERLAN_31);
|
||||
$end_date = ($row['banner_enddate'] ? e_date::strftime("%d %B %Y", $row['banner_enddate']) : BANNERLAN_31);
|
||||
$start_date = ($row['banner_startdate'] ? strftime("%d %B %Y", $row['banner_startdate']) : BANNERLAN_31);
|
||||
$end_date = ($row['banner_enddate'] ? strftime("%d %B %Y", $row['banner_enddate']) : BANNERLAN_31);
|
||||
|
||||
$scArray = array();
|
||||
$scArray['BANNER_TABLE_CLICKPERCENTAGE'] = ($row['banner_clicks'] && $row['banner_impressions'] ? round(($row['banner_clicks'] / $row['banner_impressions']) * 100)."%" : "-");
|
||||
|
@@ -140,7 +140,7 @@ class downloadCategory
|
||||
{
|
||||
$text = "<tr><td>".$cat['download_category_id']."</td><td>".$cat['download_category_parent']."</td><td>";
|
||||
$text .= $prefix.htmlspecialchars($cat['download_category_name']).$postfix."</td><td>".$cat['d_size']."</td>";
|
||||
$text .= "<td>".$cat['d_count']."</td><td>".$cat['d_requests']."</td><td>".e_date::strftime('%H:%M %d-%m-%Y',$cat['d_last'])."</td>";
|
||||
$text .= "<td>".$cat['d_count']."</td><td>".$cat['d_requests']."</td><td>".strftime('%H:%M %d-%m-%Y',$cat['d_last'])."</td>";
|
||||
$text .= "</tr>";
|
||||
return $text;
|
||||
}
|
||||
|
@@ -727,14 +727,14 @@ class listclass
|
||||
if($thisday == $current_day)
|
||||
{
|
||||
$datepreftoday = $this->list_pref[$this->mode."_datestyletoday"];
|
||||
return e_date::strftime($datepreftoday, $datestamp);
|
||||
return strftime($datepreftoday, $datestamp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//else use default date style
|
||||
$datepref = $this->list_pref[$this->mode."_datestyle"];
|
||||
return e_date::strftime($datepref, $datestamp);
|
||||
return strftime($datepref, $datestamp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1889,10 +1889,10 @@ class news_front
|
||||
|
||||
|
||||
// render new date header if pref selected ...
|
||||
$thispostday = e_date::strftime("%j", $news['news_datestamp']);
|
||||
$thispostday = strftime("%j", $news['news_datestamp']);
|
||||
if ($newpostday != $thispostday && (isset($this->pref['news_newdateheader']) && $this->pref['news_newdateheader']))
|
||||
{
|
||||
echo "<div class='".DATEHEADERCLASS."'>".e_date::strftime("%A %d %B %Y", $news['news_datestamp'])."</div>";
|
||||
echo "<div class='".DATEHEADERCLASS."'>".strftime("%A %d %B %Y", $news['news_datestamp'])."</div>";
|
||||
}
|
||||
$newpostday = $thispostday;
|
||||
$news['category_id'] = $news['news_category'];
|
||||
|
Reference in New Issue
Block a user