James -

Thanks, I had worked through the date_parsed items - but was getting
the same error. Maybe I was missing some other piece at that point. i
will give it another shot.

Using modified_parsed gave me this date (2007, 12, 21, 21, 22, 49, 4,
355, 0)  but threw an error when applying a filter: AttributeError
at / 'time.struct_time' object has no attribute 'year'

I think I am just not familiar enough with Django's handling of
datetime to see what I am missing here.

Damon

On Dec 23, 11:34 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Dec 23, 2007 10:19 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > That all works - (renders as Fri, 21 Dec 2007 21:22:49 +0000 ) but I
> > can not apply any Django time filters (date, timesince, naturalday) to
> > the {{entry.date }} variable. I would guess it is not recognizing the
> > date as a 'date' but i can not find in the docs how to work this.
>
> You'll be wanting to check out the feedparser documentation[1] to find
> out what the attributes mean; in this case, for example, the 'date'
> attribute is the actual literal string which appeared inside the feed,
> and so logically can't be reformatted using date operations because
> it's not a date object. You probably want the 'date_parsed' attribute
> instead, which returns a tuple suitable for constructing various type
> of date and time objects.
>
> [1]http://feedparser.org/docs/
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to