Skip to content

Commit

Permalink
fix(tests)[DateTime]: use local timezone for static date
Browse files Browse the repository at this point in the history
fix: #436
  • Loading branch information
GeopJr committed Aug 7, 2023
1 parent 3d58d52 commit 0d39caa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/DateTime.test.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 0d39caa

Please sign in to comment.