Skip to content

Commit

Permalink
This looks like the cause of problems for some people (why?).
Browse files Browse the repository at this point in the history
Let's see if anyone is going to hit this error in the near future.
  • Loading branch information
defacer committed Feb 21, 2005
1 parent f495e05 commit e17069d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,9 @@ function usergetdate($time, $timezone=99) {

if (abs($timezone) > 13) {
$time += intval((float)date('O') * HOURSECS);
if(abs(date('O') > 12)) {
error('date("O") returns '.date('O').'!');
}
}
else {
$time += intval((float)$timezone * HOURSECS);
Expand Down

0 comments on commit e17069d

Please sign in to comment.