MDL-54008 tests: clarify comment in tz test

This commit is contained in:
Dan Poltawski
2016-05-03 09:10:35 +01:00
parent a5df2ffa52
commit 7d0b6bea51
+2 -1
View File
@@ -391,7 +391,8 @@ class core_date_legacy_testcase extends advanced_testcase {
$USER->timezone = 'Europe/Prague';
$this->assertSame('Europe/Prague', usertimezone('99'));
// Checking fallback with an unexisting timezone.
// When passed an unknown non-whole hour TZ, verify we round to closest
// hour. (Possible for legacy reasons when old timezones go away).
$USER->timezone = '-9.23';
$this->assertSame('UTC-9', usertimezone('99'));
}