Skip to content
Permalink
Browse files

This looks like the cause of problems for some people (why?).

Let's see if anyone is going to hit this error in the near future.
  • Loading branch information...
defacer
defacer committed Feb 21, 2005
1 parent f495e05 commit e17069d52a4981b1820650864135c87c9e507b1c
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/moodlelib.php
@@ -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);

0 comments on commit e17069d

Please sign in to comment.
You can’t perform that action at this time.