Closed rachaelmburke closed 3 years ago
Per NEWS bullet https://github.com/tidyverse/lubridate/blob/master/NEWS.md#version-1792, It seems that this issue is fixed now right ?
As it is not closed, just want to confirm.
Yes, it should be fixed in devel. Will try to release to CRAN next week.
Oh ok, The NEWS item was for 1.7.9.2 so I thought it was already fixed in the CRAN version. So it isn't ?
@vspinu I understood what you meant I think.
This has been fully fixed in https://github.com/tidyverse/lubridate/pull/936 after first try in 4c8428b7b3bd30c8789340381ebd9f455308dc27 it it seems but I don't think the commit for the PR (6c535c82ed7f263ce5daceba9c87827400d4423e) made the last CRAN release 1.7.9.2 - the date is after the published date on CRAN, and I don't see the change in lubridate:::.onLoad
.
Unfortunately, 6c535c82ed7f263ce5daceba9c87827400d4423e shows that it is included in the tag of 1.7.9.2 - I was mislead by this I think.
I reverted back the change in distill to use CRAN lubridate and wait for the next version you said you will release soon hopefully.
Thank you.
Sorry. It was a messup with tagging on my side this time :/ I am preparing a CRAN release.
Sorry to get back to this issue, but we are having this problem with our teams after upgrading to R 4.2.1 on Windows (coming from R 4.1.3, didn't have the warning):
lubridate::now()
#> [1] "2022-09-15 14:17:10 CEST"
#> Warning message:
#> In with_tz(Sys.time(), tzone) : Unrecognized time zone ''
Sys.getlocale()
#> [1] "LC_COLLATE=Dutch_Netherlands.utf8;LC_CTYPE=Dutch_Netherlands.utf8;LC_MONETARY=Dutch_Netherlands.utf8;LC_NUMERIC=C;LC_TIME=Dutch_Netherlands.utf8"
Sys.timezone()
#> [1] "Europe/Berlin"
Sys.getenv("TZDIR")
#> [1] "C:/R/R/R-42~1.1/share/zoneinfo"
Created on 2022-09-15 with reprex v2.0.2
Perhaps the same as #945?
@msberends given that the previous problem was over a year ago and on mac, it's probably different issue. I'd recommend creating a new issue instead.
Makes sense, I'm sorry. Solution found - we had to reinstall lubridate
after updating R. So for minor updates (R 4.x to R 4.y) this is apparently required.
I updated R yesterday to version 4.0.3 and now my timezone codes are throwing an error in lubridate.
For example
a <- "1 Sep 2020 1:00pm" #make a string date
This works fine:
But this doesn't work:
I get the error
For what it's worth, some of the three letter time zone abbreviations seem to work
But no other time zone specification works (have tried "Europe/London" and "Africa/Harare")
I've checked by system time zone
I'm not sure what's throwing the issue or if it is specific to lubridate, or something else (?)