Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML::Feed::Entry::Format::Atom loses tz information when parsing dates [rt.cpan.org #92763] #43

Open
atoomic opened this issue Jan 11, 2019 · 1 comment

Comments

@atoomic
Copy link
Collaborator

atoomic commented Jan 11, 2019

Migrated from rt.cpan.org#92763 (status was 'new')

Requestors:

From john@jrjrtech.com on 2014-02-05 20:32:34
:

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


@atoomic
Copy link
Collaborator Author

atoomic commented Jan 11, 2019

comment from #27
It looks like David Wheeler's patch in #23 will also fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant