Feed Parser, Community Aggregator, Date and Time settings
I'm using the Django community aggregator on my site, which uses the
Universal Feed Parser to parse RSS feeds and save them in a database.
I noticed that the date_modified for feeds were actually +5 of my
timezone, which is set to America/Detroit in my Django settings. I'm
on DotCloud and unfortunately I'm not able to set any Environment
Variables (yet, they say they're working on that) and the default
timezone on there is UTC.
I don't mind that the field is saved in the database in the UTC
timezone, that's probably best. What I need to do, and have fought for
two days to do is convert it to Eastern Timezone when displayed on the
site. Also, I use the timesince template tag on a couple pages that
need to do a time since now to the feed item's date_modified both in
Eastern Timezone.
Any ideas? Suggestions?
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home