From ed3a47aad19c9264f5cddfce99b5f3164a54af1c Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 3 May 2016 09:08:00 +0100 Subject: [PATCH] MDL-54008 tests: clarify comment in tz test --- lib/tests/date_legacy_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests/date_legacy_test.php b/lib/tests/date_legacy_test.php index 758416373a9..ff5c2a4b40c 100644 --- a/lib/tests/date_legacy_test.php +++ b/lib/tests/date_legacy_test.php @@ -340,7 +340,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')); } -- 2.36.1