Permalink
Browse files

MDL-54008 tests: clarify comment in tz test

  • Loading branch information...
danpoltawski committed May 3, 2016
1 parent fe404e0 commit f2aa7e7bd989f5ee4de8683210dfb6f8f1fd5824
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/tests/date_legacy_test.php
@@ -391,7 +391,8 @@ public function test_usertimezone() {
$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'));
}

0 comments on commit f2aa7e7

Please sign in to comment.