Fixed incorrect display of time

This commit is contained in:
selliott 2004-02-23 21:17:03 +00:00
parent 1e23ed0aa4
commit 3819ed3115
2 changed files with 3 additions and 5 deletions

View File

@ -214,16 +214,14 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0,
} else {
$day = $strdays;
}
$selecteddate = time() - ($count * 3600 * 24);
$tmpdate = time() - ($count * 3600 * 24);
$heading = $heading .
"<a href=\"$CFG->wwwroot/course/recent.php?id=$course->id&date=$selecteddate\"> $count $day</a> | ";
"<a href=\"$CFG->wwwroot/course/recent.php?id=$course->id&date=$tmpdate\"> $count $day</a> | ";
}
$heading = $strsince . ": <a href=\"$CFG->wwwroot/course/recent.php?id=$course->id\">$strlastlogin</a>" . " | " . $heading;
print_heading($heading);
print_heading(get_string("activitysince", "", userdate($selecteddate)));
$advancedlink = "<a href=\"$CFG->wwwroot/course/recent.php?id=$course->id&advancedfilter=1\">" . get_string("advancedfilter") . "</a>";
print_heading($advancedlink);

View File

@ -64,7 +64,7 @@ $advancedfilter = 1;
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strrecentactivity", "");
}
print_heading(get_string("choosereportfilter").":");
print_heading(get_string("activitysince", "", userdate($date)));
print_recent_selector_form($course, $advancedfilter);