Skip to content

tests: Fix gdatetime test on non-UTC systems

Philip Withnall requested to merge pwithnall/glib:fix-z-format-tests into main

Commit 0b114b26 accidentally made the tests only pass on systems running in a UTC timezone, as it checked the local timezone %Z format against UTC.

This happens to pass on all the GLib CI runners except the macOS one, which is running under CET.

Make the formatting tests timezone-independent by running them with UTC datetimes. There’s already a separate test for checking that %Z works correctly in a non-UTC timezone (test_z).

Signed-off-by: Philip Withnall

See: !3611 (comment 1859208)

Merge request reports