Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef55f15
)
MDL-54008 tests: clarify comment in tz test
author
Dan Poltawski
<dan@moodle.com>
Tue, 3 May 2016 08:08:00 +0000
(09:08 +0100)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 3 May 2016 08:08:27 +0000
(09:08 +0100)
lib/tests/date_legacy_test.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/tests/date_legacy_test.php
b/lib/tests/date_legacy_test.php
index
7584163
..
ff5c2a4
100644
(file)
--- 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'));
}