summaryrefslogtreecommitdiff
path: root/js_tests
diff options
context:
space:
mode:
authorSven Grunewaldt <strayer@olle-orks.org>2015-12-16 15:11:00 +0100
committerTim Graham <timograham@gmail.com>2015-12-17 14:35:13 -0500
commit9af40f5df13801ffadcc5ded7440e4616123959f (patch)
tree902fefdf49fe11df899826fbee2e05f822f9d76a /js_tests
parentd91cc25a2a43cb2526943dc2285ffe59e38fabfd (diff)
Fixed #25845 -- Fixed incorrect timezone warnings in custom admin templates.
Diffstat (limited to 'js_tests')
-rw-r--r--js_tests/admin/DateTimeShortcuts.test.js4
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);
});