From 9af40f5df13801ffadcc5ded7440e4616123959f Mon Sep 17 00:00:00 2001 From: Sven Grunewaldt Date: Wed, 16 Dec 2015 15:11:00 +0100 Subject: Fixed #25845 -- Fixed incorrect timezone warnings in custom admin templates. --- js_tests/admin/DateTimeShortcuts.test.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js_tests/admin/DateTimeShortcuts.test.js') 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); }); -- cgit v1.3