#3415: django allows invalid TIME_ZONE in settings.py
----------------------------------------------+-----------------------------
   Reporter:  [EMAIL PROTECTED]      |                Owner:  jacob        
     Status:  new                             |            Component:  
Uncategorized
    Version:  SVN                             |           Resolution:           
    
   Keywords:  datetime TIME_ZONE settings.py  |                Stage:  Accepted 
    
  Has_patch:  0                               |           Needs_docs:  0        
    
Needs_tests:  0                               |   Needs_better_patch:  0        
    
----------------------------------------------+-----------------------------
Changes (by mtredinnick):

  * version:  0.95 => SVN

Comment:

 Winston's idea is not a bad one. However, the implementation should be a
 bit more careful. Check the values before trying to change the timezone
 and then again afterwards. Basically, I would not want a warning emitted
 for whose machine was set to a London timezone (which isn't UTC, because
 UTC doesn't have daylight savings), or any equivalent locale.
 
 Also, emitting a warning is not correct. If we cannot effectively change
 the timezone, it should be an error. The current behaviour is like
 emitting a warning that the aircraft is missing a wing and then letting
 the pilot try to take off anyway.
 
 This patch will need a lot of testing on different platforms in different
 configurations, so it may take a while to get right, but Winston's
 approach is the best idea I've seen yet for trying to get this correct
 without having to maintain a massive whitelist.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3415#comment:7>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to