]> git.mjollnir.org Git - moodle.git/commitdiff
Now day-names are showed properly always. Bug 1422.
authorstronk7 <stronk7>
Wed, 19 May 2004 23:08:03 +0000 (23:08 +0000)
committerstronk7 <stronk7>
Wed, 19 May 2004 23:08:03 +0000 (23:08 +0000)
Using gmt functions to avoid TZ displacements...
(http://moodle.org/bugs/bug.php?op=show&bugid=1422)
And BUMP version.

backup/config.html
backup/version.php

index 208779ae46ca065f1334caa33fe6cf1c1ec45a49..9d1c284ba1c39311217b439d161d1f04730cc4aa 100644 (file)
             if (!isset($firstdayofweek) || $firstdayofweek != 1) {
                 $firstdayofweek = 0;
             }
-            //Now create the timestamp of a well-know sunday (02/25/2001, my 31th birthday (stronk7) !!)
-            $onesunday = make_timestamp(2001,2,25);
+            //Now create the GMT timestamp of a well-know sunday (02/25/2001, my 31th birthday (stronk7) !!)
+            $onesunday = gmmktime(0,0,0,2,25,2001);
             $i = 0;
             $day_names = "";
             $check_names = "";
             while ($i<7) {
-                $day_names[] = strftime("%A",$onesunday + (($firstdayofweek+$i)*86400));
+                $day_names[] = gmstrftime("%A",$onesunday + (($firstdayofweek+$i)*86400));
                 //Calculate standard day of week (0=Sunday......6=Saturday)
                 //to store info in that exact order in DB
                 $stddayofweek = ($i+$firstdayofweek) % 7;
index f847056ed54b9668fe57702141f1f5638f9173fb..87c20cba81807b2dbd6a2b9a74af5f23501e13c4 100644 (file)
@@ -5,6 +5,6 @@
 // database (backup_version) to determine whether upgrades should
 // be performed (see db/backup_*.php)
 
-$backup_version = 2004051300;   // The current version is a date (YYYYMMDDXX)
+$backup_version = 2004051600;   // The current version is a date (YYYYMMDDXX)
 
 $backup_release = "1.3 Beta +";  // User-friendly version number