From ba484b210886d8cbc5212b045cc613d6a1eadeca Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 19 May 2004 23:08:03 +0000 Subject: [PATCH] Now day-names are showed properly always. Bug 1422. Using gmt functions to avoid TZ displacements... (http://moodle.org/bugs/bug.php?op=show&bugid=1422) And BUMP version. --- backup/config.html | 6 +++--- backup/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backup/config.html b/backup/config.html index 208779ae46..9d1c284ba1 100644 --- a/backup/config.html +++ b/backup/config.html @@ -163,13 +163,13 @@ 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; diff --git a/backup/version.php b/backup/version.php index f847056ed5..87c20cba81 100644 --- a/backup/version.php +++ b/backup/version.php @@ -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 -- 2.39.5