From 8e9f7deed1462268f82c922b6fd31e7ffc3c8cab Mon Sep 17 00:00:00 2001 From: Diogo Netto <61364108+d-netto@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:05:19 -0300 Subject: [PATCH] Revert "[Dates] Make test more robust against non-UTC timezones (#55829) (#184)" (#188) This reverts commit a911d007cceb447952733a00689bc1aa57b1b6e4. --- stdlib/Dates/test/types.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/stdlib/Dates/test/types.jl b/stdlib/Dates/test/types.jl index 1cff685ae7beb..8823e56e41a2f 100644 --- a/stdlib/Dates/test/types.jl +++ b/stdlib/Dates/test/types.jl @@ -256,11 +256,7 @@ end end @testset "issue #31524" begin - # Ensure the result doesn't depend on local timezone, especially on macOS - # where an extra internal call to `mktime` is affected by timezone settings. - dt1 = withenv("TZ" => "UTC") do - Libc.strptime("%Y-%m-%dT%H:%M:%SZ", "2018-11-16T10:26:14Z") - end + dt1 = Libc.strptime("%Y-%M-%dT%H:%M:%SZ", "2018-11-16T10:26:14Z") dt2 = Libc.TmStruct(14, 30, 5, 10, 1, 99, 3, 40, 0) time = Time(dt1)