#4076: Patch to Output Timezone in Date Fields for Atom Feeds
----------------------------------------------------------+-----------------
          Reporter:  Alastair Tse <[email protected]>  |         Owner:  
toke        
            Status:  reopened                             |     Milestone:      
        
         Component:  RSS framework                        |       Version:  1.1 
        
        Resolution:                                       |      Keywords:  
sprintsept14
             Stage:  Accepted                             |     Has_patch:  0   
        
        Needs_docs:  0                                    |   Needs_tests:  0   
        
Needs_better_patch:  0                                    |  
----------------------------------------------------------+-----------------
Comment (by wiboshu):

 Replying to [comment:6 anonymous]:
 > Same problem here:
 >
 > Code:
 > {{{
 > def items(self):
 >     return Entry.objects.filter(is_published=True,
 pub_date__lte=datetime.date.today()).order_by('-pub_date')[:5]
 > }}}
 >
 > Error:
 > {{{
 > Exception Type: AttributeError
 > Exception Value: 'datetime.date' object has no attribute 'tzinfo'
 > Exception Location: /Library/Python/2.6/site-
 packages/django/contrib/syndication/feeds.py in get_feed, line 148
 > Python Executable: /usr/bin/python
 > Python Version: 2.6.1
 > }}}
 You may have used DateField in the model incorrectly.Use DateTimeField
 instead.

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