mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25845 -- Fixed incorrect timezone warnings in custom admin templates.
This commit is contained in:
committed by
Tim Graham
parent
d91cc25a2a
commit
9af40f5df1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user