-
Notifications
You must be signed in to change notification settings - Fork 209
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
with_tz()
warns about invalid timezones, but returns them correctly anyway
#602
Comments
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")
[1] "2017-11-02 10:52:20 CDT" If |
Thanks for your speedy reply, Both 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:
|
Ok, thanks. It's the TZDIR env issue. Preparing a fix asap. |
Great! |
@steffilazerte Do you have the ability to test the dev version? I pushed a fix which works for me. I would be extremely grateful if you could check it asap. Lubridate was removed from CRAN because it failed on solaris, and I think it's the same issue. |
I'll give it a shot, get back to you soon. |
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! |
Ok. Great. Nevermind for AppVeyor. I cloned your testing package and it's fixed. Thanks a bunch for you instant input! |
Awesome, glad to hear it worked out |
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.
with_tz()
warns about invalid timezones, but returns them correctly anyway...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())
The text was updated successfully, but these errors were encountered: