Feeds discard timezone information from pubdate
|Reported by:||Rajat Upadhyaya||Owned by:||Eric Holscher|
|Severity:||Keywords:||atom rss feeds timezone|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
Changeset 8216 which fixed 7016 calculates the timezone offset with respect to the server timezone. Even if timezone information is already present in the pubdate field (i.e. the datetime.datetime object returned by item_pubdate already contains a tzinfo component), it is discarded. The attached patch checks pubdate for attached timezone information before calculating the offset.