mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 13:25: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.
(cherry picked from commit 4f64f5b61b
)
This commit is contained in:
parent
e1c341a605
commit
4501c7eab0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue