diff options
| author | Sven Grunewaldt <strayer@olle-orks.org> | 2015-12-16 15:11:00 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-17 14:35:40 -0500 |
| commit | badeb56f833138fe637607fe3c7e4bfae3048e50 (patch) | |
| tree | 0354cd1efb4e7a6b1b03feac17ffb43d572942ac /js_tests/admin | |
| parent | ff077cd6496b6f82195e2dc040f70e19e7c206c9 (diff) | |
[1.9.x] Fixed #25845 -- Fixed incorrect timezone warnings in custom admin templates.
Backport of 9af40f5df13801ffadcc5ded7440e4616123959f from master
Diffstat (limited to 'js_tests/admin')
| -rw-r--r-- | js_tests/admin/DateTimeShortcuts.test.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js_tests/admin/DateTimeShortcuts.test.js b/js_tests/admin/DateTimeShortcuts.test.js index 2fc9d9a8c6..e993090233 100644 --- a/js_tests/admin/DateTimeShortcuts.test.js +++ b/js_tests/admin/DateTimeShortcuts.test.js @@ -16,4 +16,8 @@ test('init', function(assert) { assert.equal(shortcuts.length, 1); assert.equal(shortcuts.find('a:first').text(), 'Today'); assert.equal(shortcuts.find('a:last .date-icon').length, 1); + + // To prevent incorrect timezone warnings on date/time widgets, timezoneOffset + // should be 0 when a timezone offset isn't set in the HTML body attribute. + assert.equal(DateTimeShortcuts.timezoneOffset, 0); }); |
