]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed 'off by one' month bug in month select boxes generated by
authormartinlanghoff <martinlanghoff>
Thu, 12 Apr 2007 00:41:31 +0000 (00:41 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 12 Apr 2007 00:41:31 +0000 (00:41 +0000)
print_date_selector when users time zone set to GMT-13.

Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt <mattc@catalyst.net.nz>

lib/weblib.php

index 36b2c71d0b5c422b32eee28bb2cb10cbf87a75a8..9cab7f0adf2257524eeef01164ebbd72f97b6382 100644 (file)
@@ -4496,7 +4496,7 @@ function print_date_selector($day, $month, $year, $currenttime=0, $return=false)
         $days[$i] = $i;
     }
     for ($i=1; $i<=12; $i++) {
-        $months[$i] = userdate(gmmktime(12,0,0,$i,1,2000), "%B");
+        $months[$i] = userdate(gmmktime(12,0,0,$i,15,2000), "%B");
     }
     for ($i=1970; $i<=2020; $i++) {
         $years[$i] = $i;