Skip to content

Commit

Permalink
Fixed incorrect display of time
Browse files Browse the repository at this point in the history
  • Loading branch information
selliott committed Feb 23, 2004
1 parent 1e23ed0 commit 3819ed3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions course/lib.php
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion course/recent.php
Expand Up @@ -64,7 +64,7 @@
"<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);

Expand Down

0 comments on commit 3819ed3

Please sign in to comment.