Skip Menu |

This queue is for tickets about the XML-Feed CPAN distribution.

Report information
The Basics
Id: 92763
Status: resolved
Priority: 0/
Queue: XML-Feed

People
Owner: Nobody in particular
Requestors: john [...] jrjrtech.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: XML::Feed::Entry::Format::Atom loses tz information when parsing dates
Date: Wed, 05 Feb 2014 14:32:23 -0600
To: bug-XML-Feed [...] rt.cpan.org
From: John Regan <john [...] jrjrtech.com>
Hi there - I was using XML::Feed, and I noticed that the DateTime object from Atom feeds is always in UTC. It's the right time, it just loses the timezone offset, which is useful to know - you can figure out what timezone the original author was in when he wrote a piece, for example. From what I can tell, XML::Feed::Entry::Format::Atom is using the iso2dt function from XML::Atom::Util - looking at the code, you can see it discards the original timezone, and instead sets the dt object to be UTC. http://cpansearch.perl.org/src/MIYAGAWA/XML-Atom-0.27/lib/XML/Atom/Util.pm Just thought I'd let you know. Thanks! -John
Ticket migrated to github as https://github.com/davorg/xml-feed/issues/43