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

fast_strptime differs from strptime in regards to tz parameter #394

Closed
trittweiler opened this Issue Mar 12, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@trittweiler

trittweiler commented Mar 12, 2016

It seems that fast_strptime considers the input string to be specified in GMT and uses its tz argument to bring the specified time relative to the timezone of the tz argument.

> "12/03/16 12:00" %>% strptime("%d/%m/%y %H:%M", tz="Europe/Zurich")
[1] "2016-03-12 12:00:00 CET"

versus

> "12/03/16 12:00" %>% fast_strptime("%d/%m/%y %H:%M", tz="Europe/Zurich")
[1] "2016-03-12 13:00:00 CET"

I am running R 3.2.3 and lubridate 1.5.0.

@vspinu

This comment has been minimized.

Member

vspinu commented Mar 12, 2016

This is a bug. Looking into it right now. Thanks.

@vspinu vspinu added the bug label Mar 12, 2016

@vspinu vspinu added this to the v1.5.6 milestone Mar 13, 2016

@vspinu vspinu closed this in 2852079 Mar 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment