Fixed #25845 -- Fixed incorrect timezone warnings in custom admin templates.

This commit is contained in:
Sven Grunewaldt 2015-12-16 15:11:00 +01:00 committed by Tim Graham
parent d91cc25a2a
commit 9af40f5df1
3 changed files with 10 additions and 2 deletions

View file

@ -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);
});