Skip to content

Commit 9414a74

Browse files
d-nettonickrobinson251
authored andcommitted
Revert "[Dates] Make test more robust against non-UTC timezones (JuliaLang#55829) (#184)" (#188)
This reverts commit a911d00.
1 parent 1e0922a commit 9414a74

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
@@ -257,11 +257,7 @@ end
257257
end
258258

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

267263
time = Time(dt1)

0 commit comments

Comments
 (0)