Skip to content

Commit

Permalink
cran: use America/New_York rather than EST (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
aronatkins authored Nov 18, 2024
1 parent 848b15f commit 6713ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-http.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ test_that("rcf2616 returns an ASCII date and undoes changes to the locale", {
old <- Sys.getlocale("LC_TIME")
defer(Sys.setlocale("LC_TIME", old))

date <- rfc2616Date(time = as.POSIXct("2024-01-01 01:02:03", tz = "EST"))
date <- rfc2616Date(time = as.POSIXct("2024-01-01 01:02:03", tz = "America/New_York"))
expect_equal(date, "Mon, 01 Jan 2024 06:02:03 GMT")
expect_equal(Sys.getlocale("LC_TIME"), old)
})

0 comments on commit 6713ce7

Please sign in to comment.