#4076: Patch to Output Timezone in Date Fields for Atom Feeds
----------------------------------------------------------+-----------------
          Reporter:  Alastair Tse <[EMAIL PROTECTED]>  |         Owner:  toke   
     
            Status:  closed                               |     Milestone:      
        
         Component:  RSS framework                        |       Version:  SVN 
        
        Resolution:  fixed                                |      Keywords:  
sprintsept14
             Stage:  Accepted                             |     Has_patch:  1   
        
        Needs_docs:  0                                    |   Needs_tests:  0   
        
Needs_better_patch:  0                                    |  
----------------------------------------------------------+-----------------
Comment (by max klymyshyn):

 I don't understand what is wrong, but i had some trouble with
 django/utils/feedgenerator.py.
 Error output is:
 {{{
 Exception Value:        'datetime.date' object has no attribute 'tzinfo'
 Exception Location:
 /Users/gabonsky/Bin/dist/django/django/utils/feedgenerator.py in
 rfc2822_date, line 29
 Python Executable:
 
/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
 Python Version:         2.5.1
 }}}

 Here is patch for django/django/utils/feedgenerator.py:
 {{{
 29c29
 <     if date.tzinfo:
 ---
 >     if hasattr(date, 'tzinfo') and date.tzinfo:
 }}}

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