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 an unexpected problem or unintended behavior

Comments

@bartaelterman
Copy link

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 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 an unexpected problem or unintended behavior label Nov 24, 2015
@vspinu vspinu closed this as completed in 375594a Nov 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants