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

More confusion with TZ under Windows #98

Closed
christophsax opened this issue Jun 26, 2019 · 2 comments
Closed

More confusion with TZ under Windows #98

christophsax opened this issue Jun 26, 2019 · 2 comments

Comments

@christophsax
Copy link
Contributor

To make things worse: any idea why useR = TRUE stripes the first three letters? This is with my latest dev:

tz <- "America/Atikokan"
Sys.timezone()
#> [1] "Europe/Berlin"
Sys.setenv("TZ"=tz)
Sys.timezone()
#> [1] "America/Atikokan"
library(anytime)
anytime:::.pkgenv$tz
#> [1] "America/Atikokan"
anytime("2016-09-01 10:11:12", useR = TRUE)
#> Warning in as.POSIXlt.POSIXct(x, tz): unknown timezone 'rica/Atikokan'
#> [1] "2016-09-01 04:11:12 EST"
Sys.timezone()
#> [1] "rica/Atikokan"

Created on 2019-06-26 by the reprex package (v0.3.0)

Perhaps I should go to sleep...

@christophsax christophsax changed the title More confustion with TZ under Windows More confusion with TZ under Windows Jun 26, 2019
@eddelbuettel
Copy link
Owner

Perhaps I should go to sleep...

Yes. I usually conclude that when fighting TZ code and system libraries....

And please do not open a new issue every five minutes. Do you mind closing this and keeping what is really the same discussion in #96? Or am I missing something novel?

@eddelbuettel
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants