Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing 'UTC' did not equal 'Etc/UTC' failure on Mac #7526

Merged
merged 3 commits into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/Tests/src/Data/Time/Date_Time_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ spec_with name create_new_datetime parse_datetime nanoseconds_loss_in_precision=
time . millisecond . should_equal 0
time . microsecond . should_equal 0
time . nanosecond . should_equal 0
loose_zone_equal time.zone.zone_id "Etc/UTC"
loose_zone_equal (time.zone.zone_id . take (Last 3) . to_case Case.Upper) "UTC"

Test.specify "should parse custom format of local time" <|
time = parse_datetime "06 of May 2020 at 04:30AM" "dd 'of' MMMM yyyy 'at' hh:mma"
Expand Down Expand Up @@ -698,7 +698,7 @@ spec_with name create_new_datetime parse_datetime nanoseconds_loss_in_precision=
create_new_datetime 2000 2 27 12 10 . add_work_days 3 . should_equal (Date_Time.new 2000 3 2 12 10)
create_new_datetime 1999 2 27 12 10 . add_work_days 3 . should_equal (Date_Time.new 1999 3 4 12 10)

Test.specify "should handle shifting dates around spring DST edge cases" <|
Test.specify "should handle shifting dates around spring DST edge cases" pending=dst_pending <|
# 2022-10-30 and 2022-03-27 are DST switch days, Sundays.
loose_zone_equal (create_new_datetime 2022 10 30 2 30 55 1234 . add_work_days 0) (create_new_datetime 2022 10 31 2 30 55 1234)
loose_zone_equal (create_new_datetime 2022 10 30 1 30 . add_work_days 1) (Date_Time.new 2022 11 1 1 30)
Expand Down