Skip to content

Commit 8e9f7de

Browse files
authored
Revert "[Dates] Make test more robust against non-UTC timezones (JuliaLang#55829) (#184)" (#188)
This reverts commit a911d00.
1 parent 037dc51 commit 8e9f7de

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

stdlib/Dates/test/types.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,7 @@ end
256256
end
257257

258258
@testset "issue #31524" begin
259-
# Ensure the result doesn't depend on local timezone, especially on macOS
260-
# where an extra internal call to `mktime` is affected by timezone settings.
261-
dt1 = withenv("TZ" => "UTC") do
262-
Libc.strptime("%Y-%m-%dT%H:%M:%SZ", "2018-11-16T10:26:14Z")
263-
end
259+
dt1 = Libc.strptime("%Y-%M-%dT%H:%M:%SZ", "2018-11-16T10:26:14Z")
264260
dt2 = Libc.TmStruct(14, 30, 5, 10, 1, 99, 3, 40, 0)
265261

266262
time = Time(dt1)

0 commit comments

Comments
 (0)