]> git.mjollnir.org Git - moodle.git/commitdiff
Add two hours to avoid possible daylight savings time problems
authormoodler <moodler>
Wed, 6 Aug 2003 15:32:31 +0000 (15:32 +0000)
committermoodler <moodler>
Wed, 6 Aug 2003 15:32:31 +0000 (15:32 +0000)
course/format/weeks.php

index 92e31f63fd730aec490a871d6c707acf35569680..b94ed727236085b180315ba362aa3d7637edee6b 100644 (file)
 /// Now all the weekly sections
     $timenow = time();
     $weekdate = $course->startdate;    // this should be 0:00 Monday of that week
+    $weekdate += 7200;                 // Add two hours to avoid possible DST problems
     $section = 1;
     $sectionmenu = array();
     $weekofseconds = 604800;