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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

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 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