id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 25845,False timezone offset warnings in admin if a custom base template doesn't set data-admin-utc-offset,Sven Grunewaldt,Sven Grunewaldt,"Django 1.9 introduced a new data attribute on the body tag in the Django admin base template: https://github.com/django/django/commit/8eeb566aca33600d272dee5fba59c3445b5b8163 This attribute is read in JavaScript with getAttribute() and checked on !== undefined to determine if it is set: https://github.com/django/django/commit/8eeb566aca33600d272dee5fba59c3445b5b8163#diff-cb2d960617da7bad9ba5ed3366931159R22 This worked with the previous code, but getAttribute() returns null or """", which never equals undefined. Because of this the following code will run, calculating false offsets between browser time and server time, causing false warnings to appear in the admin date widgets. More info on getAttribute(): https://developer.mozilla.org/de/docs/Web/API/Element/getAttribute#Notes I noticed this after upgrading to Django 1.9 while using django-suit, which is missing the attribute on body at the moment: https://github.com/darklow/django-suit/issues/449",Bug,closed,contrib.admin,1.9,Normal,fixed,,,Accepted,0,0,0,0,0,0