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:
library(lubridate)
dmy_hm(a) # returns date as expected
But this doesn't work:
dmy_hm(a, tz="Africa/Blantyre") #this throws an error
I get the error
error in C_force_tz(time, tz = tzone, roll) :
CCTZ: Unrecognized output timezone: "Africa/Blantyre"
For what it's worth, some of the three letter time zone abbreviations seem to work
dmy_hm(a, tz="UTC") #works ok
dmy_hm(a, tz="CET") #works fine
dmy_hm(a, tz="EST") #works fine
But no other time zone specification works (have tried "Europe/London" and "Africa/Harare")
I've checked by system time zone
Sys.timezone() #returns "Africa/Blantyre" as expected
OlsonNames()#returns 594 timezone names (including "Africa/Blantyre" and everything else I expected)
I'm not sure what's throwing the issue or if it is specific to lubridate, or something else (?)
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 dateThis 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 (?)