#12666: Setting for sending email using localtime instead of UTC
---------------------------------------+------------------------------------
          Reporter:  net147            |         Owner:  nobody
            Status:  closed            |     Milestone:        
         Component:  django.core.mail  |       Version:  1.1   
        Resolution:  wontfix           |      Keywords:        
             Stage:  Unreviewed        |     Has_patch:  0     
        Needs_docs:  0                 |   Needs_tests:  0     
Needs_better_patch:  0                 |  
---------------------------------------+------------------------------------
Old description:

> I would like to be able to send emails using local time in the Date
> header instead of UTC by default.
>
> Changes needed (based on Django 1.1.1):
>  * django/conf/global_settings.py:
>    * Add "EMAIL_USE_LOCALTIME = False" (won't sent using local time by
> default unless you explicitly enable it)
>  * django/core/mail.py:
>    * Change "msg['Date'] = formatdate()" to "msg['Date'] =
> formatdate(localtime=settings.EMAIL_USE_LOCALTIME)"

New description:

 I would like to be able to send emails using local time in the Date header
 instead of UTC by default.

 Changes needed (based on Django 1.1.1):
  * `django/conf/global_settings.py`:
    * Add `"EMAIL_USE_LOCALTIME = False"` (won't sent using local time by
 default unless you explicitly enable it)
  * `django/core/mail.py`:
    * Change `"msg['Date'] = formatdate()"` to `"msg['Date'] =
 formatdate(localtime=settings.EMAIL_USE_LOCALTIME)"`

Comment (by ramiro):

 (re-formatted description)

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