mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #25845 -- Fixed incorrect timezone warnings in custom admin templates.
This commit is contained in:
parent
d91cc25a2a
commit
9af40f5df1
3 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue