After update to 5.3

Hi Tom,
I had the same problem, on a local installation under Windows it looked good but on the Linux server the encoding was wrong.
Since it concerns here only the date specifications it depends in my opinion at the strftime encoding.

By changing 4 lines of code you can solve the problem

Got to /pulscore/page/admin/dashboard.php

Replace line 132 from:
$result .= "<li>{$filename} <br /><span class='date'>".\strftime("%B %d, %Y %H:%M:%S", \filemtime($theFile))."</span></li>";

to:
$result .= "<li>{$filename} <br /><span class='date'>".\utf8_encode(strftime("%d. %B %Y %H:%M:%S", \filemtime($theFile)))."</span></li>";


Replace line 134 from:
$result .= "<li><a class=\"word-split\" href=\"{$clean_edit_path}\">{$filename}</a><br /><span class='date'>".\strftime("%B %d, %Y %H:%M:%S", \filemtime($theFile))."</span></li>";

to:
$result .= "<li><a class=\"word-split\" href=\"{$clean_edit_path}\">{$filename}</a><br /><span class='date'>".\utf8_encode(strftime("%d. %B %Y %H:%M:%S", \filemtime($theFile)))."</span></li>";


Replace line 149 from:
$result .= "<li style='clear: both;'><a class=\"word-split\" href=\"{$clean_edit_path}\">{$filename}</a><span class='date' style='display: block; clear: both;'>".\strftime("%B %d, %Y %H:%M:%S", \filemtime($theFile))."</span></li>";

to:
$result .= "<li style='clear: both;'><a class=\"word-split\" href=\"{$clean_edit_path}\">{$filename}</a><span class='date' style='display: block; clear: both;'>".\utf8_encode(strftime("%d. %B %Y %H:%M:%S", \filemtime($theFile)))."</span></li>";


Replace line 153 from:
$result .= "<li><a class=\"word-split\" href=\"{$clean_edit_path}\">{$filename}</a><br /><span class='date'>".\strftime("%B %d, %Y %H:%M:%S", \filemtime($theFile))."</span></li>";

to:
$result .= "<li><a class=\"word-split\" href=\"{$clean_edit_path}\">{$filename}</a><br /><span class='date'>".\utf8_encode(strftime("%d. %B %Y %H:%M:%S", \filemtime($theFile)))."</span></li>";

On this occasion you will also have the date in the correct German format. :wink:

1 Like