From 4f64f5b61b2691a4784d46548a19c6ac7adae64b Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 15 Oct 2021 18:01:47 +0200 Subject: [PATCH] record-store: Prefer using g_date_time_new_now_utc() It actually does not make any difference for the storage in the database as gom will make sure to convert any given times to the Zulu timezone (UTC+0) but this change will make it more obvious in the code what's actually going on. --- src/calls-record-store.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calls-record-store.c b/src/calls-record-store.c index 4fcb520..d1240b2 100644 --- a/src/calls-record-store.c +++ b/src/calls-record-store.c @@ -512,7 +512,7 @@ stamp_call (CallsCallRecord *record, g_debug ("Stamping call `%s'", stamp_name); - stamp = g_date_time_new_now_local (); + stamp = g_date_time_new_now_utc (); g_object_set (record_obj, stamp_name, stamp, NULL); @@ -601,7 +601,7 @@ call_added_cb (CallsRecordStore *self, GDateTime *start; g_assert (g_object_get_data (call_obj, "calls-call-start") == NULL); - start = g_date_time_new_now_local (); + start = g_date_time_new_now_utc (); g_object_set_data_full (call_obj, "calls-call-start", start, (GDestroyNotify)g_date_time_unref);