mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Slight changes to userdate() function. It now uses gmstrftime() instead of
gmdate to format times, thus allowing it to take advantage of locale, if set, to print dates in the appropriate language. Several userdate invocations had to be changed, though, to use the different formatting specs.
This commit is contained in:
parent
1d16c5717b
commit
7a302afc5f
10 changed files with 35 additions and 27 deletions
|
@ -535,7 +535,7 @@ function displaydir ($wdir) {
|
|||
$filename = $fullpath."/".$dir;
|
||||
$fileurl = rawurlencode($wdir."/".$dir);
|
||||
$filesafe = rawurlencode($dir);
|
||||
$filedate = userdate(filectime($filename), "d-m-Y H:i:s");
|
||||
$filedate = userdate(filectime($filename), "%e %b %Y, %I:%M %p");
|
||||
|
||||
echo "<TR>";
|
||||
|
||||
|
@ -561,7 +561,7 @@ function displaydir ($wdir) {
|
|||
$fileurl = "$wdir/$file";
|
||||
$filesafe = rawurlencode($file);
|
||||
$fileurlsafe = rawurlencode($fileurl);
|
||||
$filedate = userdate(filectime($filename), "d-m-Y H:i:s");
|
||||
$filedate = userdate(filectime($filename), "%e %b %Y, %I:%M %p");
|
||||
|
||||
echo "<TR>";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue