diff options
author | Corentin Noël <corentin.noel@collabora.com> | 2023-03-05 23:27:44 +0100 |
---|---|---|
committer | Corentin Noël <tintou@noel.tf> | 2023-03-20 12:57:21 +0100 |
commit | c285a054e51b8bf90f0716eff6e9b597841f3028 (patch) | |
tree | 974ba3efb7bed15fe2f370524b1b669c9324c1e0 /src/libedataserver/e-source-alarms.c | |
parent | c2f039c6221cc1080711d892722e7ff7bd41d646 (diff) | |
download | evolution-data-server-c285a054e51b8bf90f0716eff6e9b597841f3028.tar.gz |
M!117 - Replace GTimeVal by GDateTime or int64
We need to use something else to be Y2038-proof.
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/117
Diffstat (limited to 'src/libedataserver/e-source-alarms.c')
-rw-r--r-- | src/libedataserver/e-source-alarms.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libedataserver/e-source-alarms.c b/src/libedataserver/e-source-alarms.c index 4c4e400d3..d397b7484 100644 --- a/src/libedataserver/e-source-alarms.c +++ b/src/libedataserver/e-source-alarms.c @@ -290,14 +290,17 @@ e_source_alarms_set_last_notified (ESourceAlarms *extension, last_notified = NULL; if (last_notified != NULL) { - GTimeVal time_val; + GDateTime *last_notified_time; - if (!g_time_val_from_iso8601 (last_notified, &time_val)) { + last_notified_time = g_date_time_new_from_iso8601 (last_notified, NULL); + if (!last_notified_time) { g_warning ( "%s: Invalid timestamp: '%s'", G_STRFUNC, last_notified); return; } + + g_date_time_unref (last_notified_time); } e_source_extension_property_lock (E_SOURCE_EXTENSION (extension)); |