Skip to content

Commit

Permalink
MDL-49828 timezones: Correct typo in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 13, 2015
1 parent dfa966c commit f3cd162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/moodlelib_test.php
Expand Up @@ -1364,7 +1364,7 @@ public function test_dst_changes() {
// DST switching in Prague.
// From 2AM to 3AM in 1989.
$date = new DateTime('1989-03-26T01:59:00+01:00');
$this->assertSAMe('Sunday, 26 March 1989, 1:59', userdate($date->getTimestamp(), '%A, %d %B %Y,%k:%M', 'Europe/Prague'));
$this->assertSame('Sunday, 26 March 1989, 1:59', userdate($date->getTimestamp(), '%A, %d %B %Y,%k:%M', 'Europe/Prague'));
$date = new DateTime('1989-03-26T02:01:00+01:00');
$this->assertSame('Sunday, 26 March 1989, 3:01', userdate($date->getTimestamp(), '%A, %d %B %Y,%k:%M', 'Europe/Prague'));
// From 3AM to 2AM in 1989 - not the same as the west Europe.
Expand Down

0 comments on commit f3cd162

Please sign in to comment.