From efe22c5af4a3e80d557c4edf08dcf8734176a93b Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Wed, 9 Jun 2021 14:49:34 +0100 Subject: [PATCH 1/2] Add default timezone to strptime --- r/tests/testthat/test-dplyr-string-functions.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r/tests/testthat/test-dplyr-string-functions.R b/r/tests/testthat/test-dplyr-string-functions.R index ea27aa14777..b5686e556d5 100644 --- a/r/tests/testthat/test-dplyr-string-functions.R +++ b/r/tests/testthat/test-dplyr-string-functions.R @@ -544,7 +544,7 @@ test_that("strptime", { ) tstring <- tibble(x = c("08-05-2008", NA)) - tstamp <- tibble(x = c(strptime("08-05-2008", format = "%m-%d-%Y"), NA)) + tstamp <- tibble(x = c(strptime("08-05-2008", format = "%m-%d-%Y", tz = "UTC"), NA)) expect_equal( tstring %>% From a3dad0b1165682c1fe22027f0a699b05f201a703 Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Wed, 9 Jun 2021 15:11:25 +0100 Subject: [PATCH 2/2] add whitespace to trigger CI --- r/tests/testthat/test-dplyr-string-functions.R | 1 + 1 file changed, 1 insertion(+) diff --git a/r/tests/testthat/test-dplyr-string-functions.R b/r/tests/testthat/test-dplyr-string-functions.R index b5686e556d5..3bdeda0c0a4 100644 --- a/r/tests/testthat/test-dplyr-string-functions.R +++ b/r/tests/testthat/test-dplyr-string-functions.R @@ -568,3 +568,4 @@ test_that("errors in strptime", { 'Time zone argument not supported by Arrow' ) }) +