Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use geographical region for timezones
Fixes: ── Error ('test-timezone.R:7:5'): with_timezone: changes the time zone ───────── Error in `format.POSIXlt(as.POSIXlt(x, tz), format, usetz, ...)`: output string exceeded 2048 bytes Backtrace: ▆ 1. ├─testthat::expect_true(...) at test-timezone.R:7:4 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─... %in% c("PDT", "PST") 5. ├─withr::with_timezone("US/Pacific", format(Sys.time(), "%Z")) 6. │ └─withr::with_envvar(c(TZ = tz), code) 7. │ └─base::force(code) 8. ├─base::format(Sys.time(), "%Z") 9. └─base::format.POSIXct(Sys.time(), "%Z") 10. ├─base::structure(...) 11. └─base::format.POSIXlt(as.POSIXlt(x, tz), format, usetz, ...) Notes from Kurt: The errors for r-devel-linux-x86_64-debian-gcc (which will eventually also show for the other Debian-based checks) are from a recent system upgrade of the tzdata package which dropped the legacy timezone symlinks that are not following the current rule of using the geographical region (continent or ocean) and city name (the "backward" links from tzdata), such as GB -> Europe/London NZ -> Pacific/Auckland US/Eastern -> America/New_York US/Pacific -> America/Los_Angeles
- Loading branch information