Skip to content

Commit

Permalink
Now day-names are showed properly always. Bug 1422.
Browse files Browse the repository at this point in the history
Using gmt functions to avoid TZ displacements...
(http://moodle.org/bugs/bug.php?op=show&bugid=1422)
And BUMP version.
  • Loading branch information
stronk7 committed May 19, 2004
1 parent 4b92953 commit ba484b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backup/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion backup/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ba484b2

Please sign in to comment.