From 90fd29d583d1fed1e780aa41bcf38aa327d66db4 Mon Sep 17 00:00:00 2001 From: Davis Vaughan Date: Tue, 3 Dec 2024 15:10:19 -0500 Subject: [PATCH] Remove usage of non-standard `EST` time zone from tests --- NEWS.md | 2 ++ tests/testthat/test_create_series.R | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 9f2afb6..9c00f91 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # tibbletime (development version) +* Removed usage of the non-standard `EST` time zone from tests. + # tibbletime 0.1.8 * Multi-week periods are no longer allowed. These previously threw a warning diff --git a/tests/testthat/test_create_series.R b/tests/testthat/test_create_series.R index 1ae7d74..329a792 100644 --- a/tests/testthat/test_create_series.R +++ b/tests/testthat/test_create_series.R @@ -50,8 +50,8 @@ test_that("Can create vector series", { }) test_that("Can alter time zone", { - series <- create_series(~'2013-01-01', '1 day', as_vector = TRUE, tz = "EST") - check <- as.POSIXct("2013-01-01", tz = "EST") + series <- create_series(~'2013-01-01', '1 day', as_vector = TRUE, tz = "America/New_York") + check <- as.POSIXct("2013-01-01", tz = "America/New_York") expect_equal(series, check) })