Opened 10 years ago

Closed 10 years ago

#23767 closed New feature (wontfix)

Add setting to toggle timezone warnings in Django admin (1.7+)

Reported by: Andy Fang Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

Starting with Django 1.7, the admin interface automatically displays a warning if the browser timezone differs from the server timezone (https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js#L63). However, there are cases, especially with TimeFields, where the time is not stored based on server time, so it doesn't make sense to show the warning in those cases.

Easy request:
It'd be nice to have a setting that toggles the entire warning display on/off.

Harder request:
Per-field parameter to specify whether or not to display warning or not.

Change History (1)

comment:1 by Tim Graham, 10 years ago

Resolution: wontfix
Status: newclosed

You should be able to accomplish this with custom CSS. I believe that's a clean solution.

Note: See TracTickets for help on using tickets.
Back to Top