Skip to content

Commit 5f93f39

Browse files
committed
another implied tz
1 parent db921fc commit 5f93f39

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

tests/testthat/tests_general.R

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -536,16 +536,17 @@ test_that("format_dates", {
536536
"../2021-01-01T00:00:00Z")
537537
expect_equal(dataRetrieval:::format_api_dates(end, TRUE),
538538
"../2021-01-01")
539-
539+
#
540540
# Bad test because it assumes a local timezone
541-
# end <- c(NA, as.POSIXct("2021-01-01 12:15:00"))
542-
# expect_equal(dataRetrieval:::format_api_dates(end),
543-
# "../2021-01-01T18:15:00Z")
544-
545-
start_end <- as.POSIXct(c("2021-01-01 12:15:00",
546-
"2022-01-01 16:45"))
547-
expect_equal(dataRetrieval:::format_api_dates(start_end),
548-
"2021-01-01T18:15:00Z/2022-01-01T22:45:00Z")
541+
# This worked locally, but failed on a CI job
542+
# # end <- c(NA, as.POSIXct("2021-01-01 12:15:00"))
543+
# # expect_equal(dataRetrieval:::format_api_dates(end),
544+
# # "../2021-01-01T18:15:00Z")
545+
#
546+
# start_end <- as.POSIXct(c("2021-01-01 12:15:00",
547+
# "2022-01-01 16:45"))
548+
# expect_equal(dataRetrieval:::format_api_dates(start_end),
549+
# "2021-01-01T18:15:00Z/2022-01-01T22:45:00Z")
549550

550551
start_end <- as.POSIXct(c("2021-01-01 12:15:00",
551552
"2022-01-01 16:45"),

0 commit comments

Comments
 (0)