1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-02 10:53:29 +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:
Cameron
2021-11-25 08:51:32 -08:00
parent 904cea1af4
commit 4aa66c1732
17 changed files with 77 additions and 75 deletions

View File

@@ -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'];