[calls] record-store: Prefer using g_date_time_new_now_utc()



commit 4f64f5b61b2691a4784d46548a19c6ac7adae64b
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Oct 15 18:01:47 2021 +0200

    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 4fcb520c..d1240b24 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]