Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`with_tz()` warns about invalid timezones, but returns them correctly anyway #602
This is a problem I've noticed on Windows only (not my Ubuntu machine). The warnings are also popping up in the AppVeyor tests (but not on Travis CI for Ubuntu and Mac).
I think it's only in lubridate v0.7.0 (related to c10c8cf) but I had problems trying to install v0.6.0 to double check.
If I try a non-legitimate name I get a second warning message (and UTC):
The first two are both legitimate timezones (i.e. they're in OlsonNames())
I don't see that on my windows machine. The internal check relies on same Olson database as OlsonNames but through the CCTZ lookup mechanism. Do you see this warning with all Timezones? "America/New_York", "Europe/Amsterdam"?
Could you please check if
> lubridate::force_tz(Sys.time(), "America/Chicago")  "2017-11-02 10:52:20 CDT"
Thanks for your speedy reply,
The output of the failed tests from AppVeyor is here (the
Considering that this is a problem on AppVeyor and that
Output from my Windows machine:
It works perfectly on my windows machine. To double check I uninstalled the dev version and reinstalled from cran and I got all the same errors. Switching back to the dev version was perfect again.
I couldn't test on AppVeyor (it had problems installing lubridate from the github site), but I can't see any reason why that wouldn't be fixed as well.
Let me know if you need any other tests! Thanks!