1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-11 23:27:35 +00:00

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.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-10-15 18:01:47 +02:00
parent 0f347861a3
commit 4f64f5b61b

View file

@ -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);