From 0d39caa83fb98bd54948d855d81aad7f07113cc3 Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Mon, 7 Aug 2023 11:05:52 +0300 Subject: [PATCH] fix(tests)[DateTime]: use local timezone for static date fix: #436 --- tests/DateTime.test.vala | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/DateTime.test.vala b/tests/DateTime.test.vala index 823777640..5ec573cdc 100644 --- a/tests/DateTime.test.vala +++ b/tests/DateTime.test.vala @@ -9,7 +9,19 @@ struct TestDate { TestDate[] get_dates () { TestDate[] res = { - { "2002-06-29T18:00:00.000Z", "Jun 29, 2002", "expired on Jun 29, 2002", "Jun 29, 2002" } + { + new DateTime.local ( + 2002, + 6, + 29, + 18, + 0, + 0.0 + ).to_string (), + "Jun 29, 2002", + "expired on Jun 29, 2002", + "Jun 29, 2002" + } }; var time_now = new GLib.DateTime.now_local ();