#14253: TIME_ZONE not respected by Today and Now widgets in admin
---------------------------------------------+------------------------------
          Reporter:  adamnelson              |         Owner:  nobody
            Status:  new                     |     Milestone:        
         Component:  django.contrib.admin    |       Version:  1.2   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by adamnelson):

 @russelm agreed

 Just to clarify what this ticket is about: it narrows itself to saying
 that it's not 'now' if you're in UTC+8 and the time is saved as UTC+8 on a
 UTC-4 machine - that's 12 hours ago and is the nature of the problem in
 this ticket.

 I think there are a few solutions:

  1. Convert the timezone on submit.  This is effectively the type of thing
 #2626 would do - it shouldn't happen here and I'm only including this
 option so it's understood that I'm not advocating this.
  1. Show the current time according to the server next to the now button
 and use the server's tz when 'now' is pushed
  1. Show the offset according to the server next to the now button and use
 the server's tz when 'now' is pushed
  1. Give an option to easily disable the 'now' button
  1. Give an option to use server time for the admin datetime widget

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14253#comment:6>
Django <http://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 post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to