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

fix strftime('%z%Z') of gmtime #3

Closed
wants to merge 1 commit into from

Conversation

dayflower
Copy link

In my environment, localtime->strftime('%z %Z') returns +0900 JST, it's OK.

But gmtime->strftime('%z %Z') also returns +0900 JST, it seems fault.
The right result would be +0000 UTC (or GMT, strftime(3) on Linux represents GMT for gmtime).

@rjbs
Copy link
Member

rjbs commented Dec 4, 2013

This would also address https://rt.cpan.org/Ticket/Display.html?id=75046

@tsibley
Copy link

tsibley commented Jul 31, 2014

and also address https://rt.cpan.org/Ticket/Modify.html?id=93095, I believe.

@smith153
Copy link
Collaborator

smith153 commented Apr 4, 2015

Merged.
I spent several days attempting to unify this issue at the xs level, but to no avail. The native strftime gives different results on windows and mac os and that is just the 'way it is'. Using a string substitute before passing to native strftime is about the only way to make this (%z and %Z) behave the same everywhere.

@smith153 smith153 closed this Apr 4, 2015
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

Successfully merging this pull request may close these issues.

None yet

4 participants