mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-49828 timezones: Correct typo in unit tests
This commit is contained in:
parent
dfa966c710
commit
f3cd1624c3
@ -1364,7 +1364,7 @@ class core_moodlelib_testcase extends advanced_testcase {
|
||||
// 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user