Skip to content

Commit 71f9657

Browse files
committed
fix(assert): use UTC on both sides of Z-suffix date test
The test compared local time with UTC time, which only passes when the system timezone is UTC. Fails in CET, JST, BRT locale CI jobs.
1 parent 685f011 commit 71f9657

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/assert_dates_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ function test_successful_assert_date_equals_epoch_vs_space_separated() {
152152
assert_empty "$(assert_date_equals "$epoch" "2023-11-14 12:00:00")"
153153
}
154154

155-
# UTC Z suffix test (documents existing behavior)
155+
# UTC Z suffix test
156156

157157
function test_successful_assert_date_equals_with_utc_z_suffix() {
158-
assert_empty "$(assert_date_equals "2023-11-14T12:00:00" "2023-11-14T12:00:00Z")"
158+
assert_empty "$(assert_date_equals "2023-11-14T12:00:00Z" "2023-11-14T12:00:00Z")"
159159
}
160160

161161
# Timezone offset tests

0 commit comments

Comments
 (0)