I have an R Shiny application that is giving me many timezone errors that cause the app to be delayed on startup. The errors say:
Warning in strptime(.enclose(x), .enclose(fmt), tz) : unknown timezone 'GMT+5'
Warning in as.POSIXct.POSIXlt(x) : unknown timezone 'GMT+5'
Warning in as.POSIXct.POSIXlt(x) : unknown timezone 'GMT+5'
Warning in as.POSIXct.POSIXlt(x) : unknown timezone 'GMT+5'
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in strptime(.enclose(x), .enclose(fmt), tz) : unknown timezone 'GMT+5'....repeat
I also deploy this application to the web where it also throws these errors:
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'
Warning in with_tz.default(x, tz) : Unrecognized time zone 'GMT+5'...repeat
Here is a snippet of my code, where I set the timezone of the data like this:
data$x <- parse_date_time(data$x, orders = c("dmy HM", "dmy H", "dmY HM", "dmY"), tz="GMT+5")
data2$x <- parse_date_time(data2$x, orders = c("dmy HM", "dmy H", "dmY HM", "dmY"), tz="GMT+5")
I'm using packages shinydashboard, dygraphs, readr, xts, lubridate, tidyr, dplyr on a Windows PC.
The correct timezone is
"Etc/GMT+5", noting the prependedEtc/.