Skip to content

Commit

Permalink
Revert "[Dates] Make test more robust against non-UTC timezones (Juli…
Browse files Browse the repository at this point in the history
…aLang#55829) (#184)" (#188)

This reverts commit a911d00.
  • Loading branch information
d-netto committed Sep 25, 2024
1 parent 037dc51 commit 8e9f7de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions stdlib/Dates/test/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e9f7de

Please sign in to comment.