#20663: Admin Now and Today buttons use confusing time / timezone -------------------------------+------------------------------------ Reporter: imfletcher | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 1.5 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------------------ Changes (by aaugustin):
* stage: Unreviewed => Accepted Comment: I'm a bit surprised that you set TIME_ZONE = 'UTC'. I suppose your application is used by users in multiple time zones, and UTC is the least controversial choice? The admin buttons should use the "current time zone". Then it's up to developers to ensure that their users have the correct "current time zone". This is how Django supports multiple time zones. If you don't do anything special, the "current time zone" is the same as the "default time zone" defined by the TIME_ZONE setting. Then all we need is a way to determine the current time in an arbitrary time zone in JavaScript. Unfortunately, I'm not aware of a JavaScript library to access the tzinfo database. If there's one, I'm not sure how to maintain it up to date. This is an open problem! I'm accepting the ticket because it's clearly an UX bug. Now, we need a plan to fix it, and such a plan should be discussed on the DevelopersMailingList first. -- Ticket URL: <https://code.djangoproject.com/ticket/20663#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.2d06299da663cbebdfa38f5c68551328%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.