mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 21:35:32 +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);
|
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,
|
g_object_set (record_obj,
|
||||||
stamp_name, stamp,
|
stamp_name, stamp,
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -601,7 +601,7 @@ call_added_cb (CallsRecordStore *self,
|
||||||
GDateTime *start;
|
GDateTime *start;
|
||||||
|
|
||||||
g_assert (g_object_get_data (call_obj, "calls-call-start") == NULL);
|
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",
|
g_object_set_data_full (call_obj, "calls-call-start",
|
||||||
start, (GDestroyNotify)g_date_time_unref);
|
start, (GDestroyNotify)g_date_time_unref);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue