$timemidnight = $today = usergetmidnight($timenow);
// Put today up the top of the list
- $dates = array("$timemidnight" => get_string("today").", ".userdate($timenow, "%e %B %Y") );
+ $dates = array("$timemidnight" => get_string("today").", ".userdate($timenow, "%d %B %Y") );
if (! $course->startdate) {
$course->startdate = $course->timecreated;
while ($timemidnight > $course->startdate and $numdates < 365) {
$timemidnight = $timemidnight - 86400;
$timenow = $timenow - 86400;
- $dates["$timemidnight"] = userdate($timenow, "%A, %e %B %Y");
+ $dates["$timemidnight"] = userdate($timenow, "%A, %d %B %Y");
$numdates++;
}
echo "<TD NOWRAP><FONT SIZE=2><A HREF=\"view.php?id=$log->course\">".$courses[$log->course]."</A></TD>";
}
echo "<TD NOWRAP ALIGN=right><FONT SIZE=2>".userdate($log->time, "%A")."</TD>";
- echo "<TD NOWRAP><FONT SIZE=2>".userdate($log->time, "%e %B %Y, %I:%M %p")."</TD>";
+ echo "<TD NOWRAP><FONT SIZE=2>".userdate($log->time, "%d %B %Y, %I:%M %p")."</TD>";
echo "<TD NOWRAP><FONT SIZE=2>";
link_to_popup_window("$CFG->wwwroot/lib/ipatlas/plot.php?address=$log->ip&user=$log->user", "ipatlas","$log->ip", 400, 700);
echo "</TD>";
} else {
echo "<P ALIGN=CENTER><FONT SIZE=1>";
echo get_string("yourlastlogin").":<BR>";
- echo userdate($USER->lastlogin, "%A, %e %b %Y, %H:%M");
+ echo userdate($USER->lastlogin, "%A, %d %b %Y, %H:%M");
echo "</FONT></P>";
}
$userinfo = "$u->firstname $u->lastname";
}
if ($date) {
- $dateinfo = userdate($date, "%A, %e %B %Y");
+ $dateinfo = userdate($date, "%A, %d %B %Y");
}
print_header("$course->shortname: $strlogs", "$course->fullname",
$i = 0;
while ($timestart < $timenow) {
$timefinish = $timestart + 86400;
- $days[$i] = userdate($timestart, "%a %e %b");
+ $days[$i] = userdate($timestart, "%a %d %b");
$logs[$i] = 0;
$i++;
$timestart = $timefinish;
$thisweek = (($weekdate <= $timenow) && ($timenow < $nextweekdate));
- $weekday = userdate($weekdate, "%e %B");
- $endweekday = userdate($weekdate+518400, "%e %B");
+ $weekday = userdate($weekdate, "%d %B");
+ $endweekday = userdate($weekdate+518400, "%d %B");
if ($thisweek) {
$highlightcolor = $THEME->cellheading2;
$filename = $fullpath."/".$dir;
$fileurl = rawurlencode($wdir."/".$dir);
$filesafe = rawurlencode($dir);
- $filedate = userdate(filectime($filename), "%e %b %Y, %I:%M %p");
+ $filedate = userdate(filectime($filename), "%d %b %Y, %I:%M %p");
echo "<TR>";
$fileurl = "$wdir/$file";
$filesafe = rawurlencode($file);
$fileurlsafe = rawurlencode($fileurl);
- $filedate = userdate(filectime($filename), "%e %b %Y, %I:%M %p");
+ $filedate = userdate(filectime($filename), "%d %b %Y, %I:%M %p");
echo "<TR>";
global $USER;
if ($format == "") {
- $format = "%A, %e %B %Y, %I:%M %p";
+ $format = "%A, %d %B %Y, %I:%M %p";
}
if ($timezone == 99) {
if (isset($USER->timezone)) {
$content = true;
print_headline(get_string("newsubmissions", "assignment").":");
foreach ($assignments as $assignment) {
- $date = userdate($assignment->time, "%e %b, %H:%M");
+ $date = userdate($assignment->time, "%d %b, %H:%M");
echo "<P><FONT SIZE=1>$date - $assignment->firstname $assignment->lastname<BR>";
echo "\"<A HREF=\"$CFG->wwwroot/mod/assignment/$assignment->url\">";
echo "$assignment->name";
$heading = true;
$content = true;
}
- $date = userdate($post->modified, "%e %b, %H:%M");
+ $date = userdate($post->modified, "%d %b, %H:%M");
echo "<P><FONT SIZE=1 $teacherpost>$date - $post->firstname $post->lastname<BR>";
echo "\"<A HREF=\"$CFG->wwwroot/mod/forum/$log->url\">";
if ($log->action == "add") {
$ownpost = ($discussion->userid == $USER->id);
switch ($forum_style) {
case "minimal":
- echo "<P><FONT COLOR=#555555>".userdate($discussion->modified, "%e %b, %H:%M")." - $discussion->firstname</FONT>";
+ echo "<P><FONT COLOR=#555555>".userdate($discussion->modified, "%d %b, %H:%M")." - $discussion->firstname</FONT>";
echo "<BR>$discussion->subject ";
echo "<A HREF=\"$CFG->wwwroot/mod/forum/discuss.php?d=$discussion->discussion\">";
echo get_string("more", "forum")."...</A>";
$content = true;
print_headline(get_string("newjournalentries", "journal").":");
foreach ($journals as $journal) {
- $date = userdate($journal->time, "%e %b, %H:%M");
+ $date = userdate($journal->time, "%d %b, %H:%M");
echo "<P><FONT SIZE=1>$date - $journal->firstname $journal->lastname<BR>";
echo "\"<A HREF=\"$CFG->wwwroot/mod/journal/$journal->url\">";
echo "$journal->name";
$content = true;
print_headline(get_string("newsurveyresponses", "survey").":");
foreach ($surveys as $survey) {
- $date = userdate($survey->time, "%e %b, %H:%M");
+ $date = userdate($survey->time, "%d %b, %H:%M");
echo "<P><FONT SIZE=1>$date - $survey->firstname $survey->lastname<BR>";
echo "\"<A HREF=\"$CFG->wwwroot/mod/survey/$survey->url\">";
echo "$survey->name";
echo "<TR>";
echo "<TD><A HREF=\"report.php?action=student&student=$a->id&id=$survey\">$a->firstname $a->lastname</A></TD>";
- echo "<TD>".userdate($a->time, "%e %B %Y, %I:%M %p")."</TD>";
+ echo "<TD>".userdate($a->time, "%d %B %Y, %I:%M %p")."</TD>";
echo "<TD align=right>$a->numanswers</TD>";
echo "</TR>";
}
print_user_picture($a->user, $course->id, $a->picture, false);
echo "</TD>";
echo "<TD><P><A HREF=\"report.php?id=$id&action=student&student=$a->user\">$a->firstname $a->lastname</A></TD>";
- echo "<TD><P>".userdate($a->time, "%e %B %Y, %I:%M %p")."</TD>";
+ echo "<TD><P>".userdate($a->time, "%d %B %Y, %I:%M %p")."</TD>";
echo "<TD BGCOLOR=\"$THEME->cellcontent\"><P>";
if ($a->answer1) {
echo "$a->answer1 - ".$answers[$a->answer1 - 1];