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

fast_strptime differs from strptime in regards to tz parameter #394

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

fast_strptime differs from strptime in regards to tz parameter #394

trittweiler opened this issue Mar 12, 2016 · 1 comment
Labels
bug
Milestone

Comments

@trittweiler
Copy link

@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
Copy link
Member

@vspinu vspinu commented Mar 12, 2016

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

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