summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2021-06-21 10:44:47 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2021-06-21 10:44:47 +0000
commitbaa17117e7f8a88b5277db17180810f4d9c0f0d6 (patch)
treea72116280e049ab3a5ee37d3a38bcb336cc3ad63
parent5d56a9944a8bec0973d6ca2ca03acb071c7d6d7d (diff)
parent4947191563c545bc13be2b636684121b4fbfd936 (diff)
downloadlibgdata-baa17117e7f8a88b5277db17180810f4d9c0f0d6.tar.gz
Merge branch 'mcatanzaro/libgdata-0.18-fix' into 'libgdata-0-18'
tests: fix build See merge request GNOME/libgdata!41
-rw-r--r--gdata/tests/calendar.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdata/tests/calendar.c b/gdata/tests/calendar.c
index 6e88aae3..b0b4d49b 100644
--- a/gdata/tests/calendar.c
+++ b/gdata/tests/calendar.c
@@ -1117,15 +1117,17 @@ test_query_uri (void)
g_assert_cmpstr (gdata_calendar_query_get_order_by (query), ==, "starttime");
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- g_time_val_from_iso8601 ("2009-04-17T15:00:00.000Z", &time_val);
- gdata_calendar_query_set_recurrence_expansion_start (query, time_val.tv_sec);
+ time_val = g_date_time_new_from_iso8601 ("2009-04-17T15:00:00.000Z", NULL);
+ gdata_calendar_query_set_recurrence_expansion_start (query, g_date_time_to_unix (time_val));
_time = gdata_calendar_query_get_recurrence_expansion_start (query);
- g_assert_cmpint (_time, ==, time_val.tv_sec);
+ g_assert_cmpint (_time, ==, g_date_time_to_unix (time_val));
+ g_date_time_unref (time_val);
- g_time_val_from_iso8601 ("2010-04-17T15:00:00.000Z", &time_val);
- gdata_calendar_query_set_recurrence_expansion_end (query, time_val.tv_sec);
+ time_val = g_date_time_new_from_iso8601 ("2010-04-17T15:00:00.000Z", NULL);
+ gdata_calendar_query_set_recurrence_expansion_end (query, g_date_time_to_unix (time_val));
_time = gdata_calendar_query_get_recurrence_expansion_end (query);
- g_assert_cmpint (_time, ==, time_val.tv_sec);
+ g_assert_cmpint (_time, ==, g_date_time_to_unix (time_val));
+ g_date_time_unref (time_val);
G_GNUC_END_IGNORE_DEPRECATIONS
gdata_calendar_query_set_single_events (query, TRUE);