#33867: Automatic detection of timezone in django admin using javascript
-------------------------------------+-------------------------------------
               Reporter:  ldeluigi   |          Owner:  nobody
                   Type:  New        |         Status:  new
  feature                            |
              Component:             |        Version:  4.0
  contrib.admin                      |
               Severity:  Normal     |       Keywords:  timezone javascript
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Given https://stackoverflow.com/questions/1091372/getting-the-clients-
 time-zone-and-offset-in-javascript
 it seems that you can get the client timezone using javascript for almost
 all browsers.

 This could be used to set a session/cookie with the aforementioned
 timezone in order to communicate it to a timezone middleware, that runs
 activate().

 Both the middleware and the javascript script could be provided by default
 by contrib.admin.

 The benefit is that by default/for free django-admin would provide its
 users with properly localized datetimes instead of UTC

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33867>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018237a241a9-45ea7cf6-e664-45bf-bd1a-29010eb3df75-000000%40eu-central-1.amazonses.com.

Reply via email to