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

z format does not match Zulu indicator #360

Closed
bartaelterman opened this issue Nov 24, 2015 · 1 comment
Closed

z format does not match Zulu indicator #360

bartaelterman opened this issue Nov 24, 2015 · 1 comment
Labels
bug

Comments

@bartaelterman
Copy link

@bartaelterman bartaelterman commented Nov 24, 2015

Based on the documentation, I would've expected the z time format to match Z indicating the Zulu (UTC) time zone. However, I get:

> library(lubridate)

> fast_strptime("2014-03-12T09:32:44Z", "%Y-%m-%dT%H:%M:%OS%Ou")
[1] "2014-03-12 09:32:44 UTC"

> fast_strptime("2014-03-12T09:32:44Z", "%Y-%m-%dT%H:%M:%OS%z")
[1] NA
@vspinu
Copy link
Member

@vspinu vspinu commented Nov 24, 2015

This is a bug. Thanks.

parse_date_time2 works though:

> parse_date_time2("2014-03-12T09:32:44Z", "YmdHMSz")
[1] "2014-03-12 09:32:44 UTC"
> 
@vspinu vspinu added the bug label Nov 24, 2015
@vspinu vspinu closed this in 375594a Nov 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants