#12666: Setting for sending email using localtime instead of UTC
---------------------------------------------+------------------------------
          Reporter:  net147                  |         Owner:  nobody
            Status:  reopened                |     Milestone:        
         Component:  django.core.mail        |       Version:  1.1   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by geofft):

 Replying to [comment:5 lukeplant]:
 > I'm not convinced it is the right thing to do.  I have sites that are
 'British' (i.e. serve almost entirely a British audience who live in GMT
 time), but the server happens to be in the States.  It would just as
 'misleading' to have e-mails that come from a non-British time zone
 (whereas UTC is kind of 'neutral').

 Isn't this what TIME_ZONE in settings.py is for?

 {{{
 In [3]: settings.TIME_ZONE
 Out[3]: 'America/Chicago'

 In [4]: formatdate(localtime=True)
 Out[4]: 'Fri, 14 May 2010 12:33:04 -0500'
 }}}
 {{{
 In [3]: settings.TIME_ZONE
 Out[3]: 'Europe/London'

 In [4]: formatdate(localtime=True)
 Out[4]: 'Fri, 14 May 2010 18:33:35 +0100'
 }}}

 Replying to [comment:6 kmtracey]:
 > Which sounds to me like the standard explicitly allows for specifying
 dates/times using only an absolute value, with no indication of what local
 time may be. This "-0000" spec is what Django is currently sending, and
 thus per the standard I think what it is doing is technically correct.

 Oh, good call, and sorry for not double-checking the RFC. That said, I
 still think it would be more useful to send "information about the local
 time zone" than not to, especially given that there is a TIME_ZONE
 variable. (The part that confused me here the most was that TIME_ZONE was
 set but not used.)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12666#comment:7>
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