aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-location-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-19 17:06:52 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-21 10:40:06 +0800
commit845c7de7a4caee49f6cea3b9f10f0df3db9d0971 (patch)
treec2fa2f7f28fc5fa8099e22cd635106b2ddc9aaca /libempathy-gtk/empathy-location-manager.c
parent3aa72e42ffe1ce5068dfc5c351d05598f2884bea (diff)
downloadgsoc2013-empathy-845c7de7a4caee49f6cea3b9f10f0df3db9d0971.tar
gsoc2013-empathy-845c7de7a4caee49f6cea3b9f10f0df3db9d0971.tar.gz
gsoc2013-empathy-845c7de7a4caee49f6cea3b9f10f0df3db9d0971.tar.bz2
gsoc2013-empathy-845c7de7a4caee49f6cea3b9f10f0df3db9d0971.tar.lz
gsoc2013-empathy-845c7de7a4caee49f6cea3b9f10f0df3db9d0971.tar.xz
gsoc2013-empathy-845c7de7a4caee49f6cea3b9f10f0df3db9d0971.tar.zst
gsoc2013-empathy-845c7de7a4caee49f6cea3b9f10f0df3db9d0971.zip
Port all timestamps from time_t to gint64 (#648188)
Diffstat (limited to 'libempathy-gtk/empathy-location-manager.c')
-rw-r--r--libempathy-gtk/empathy-location-manager.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 1c09c358c..1925d4371 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -39,6 +39,7 @@
#include "libempathy/empathy-gsettings.h"
#include "libempathy/empathy-location.h"
#include "libempathy/empathy-utils.h"
+#include "libempathy/empathy-time.h"
#define DEBUG_FLAG EMPATHY_DEBUG_LOCATION
#include "libempathy/empathy-debug.h"
@@ -322,16 +323,12 @@ static void
update_timestamp (EmpathyLocationManager *self)
{
EmpathyLocationManagerPriv *priv= GET_PRIV (self);
- GValue *new_value;
- gint64 stamp64;
- time_t timestamp;
-
- timestamp = time (NULL);
- stamp64 = (gint64) timestamp;
- new_value = tp_g_value_slice_new_int64 (stamp64);
- g_hash_table_insert (priv->location, g_strdup (EMPATHY_LOCATION_TIMESTAMP),
- new_value);
- DEBUG ("\t - Timestamp: %" G_GINT64_FORMAT, stamp64);
+ gint64 timestamp;
+
+ timestamp = empathy_time_get_current ();
+ tp_asv_set_int64 (priv->location, EMPATHY_LOCATION_TIMESTAMP, timestamp);
+
+ DEBUG ("\t - Timestamp: %" G_GINT64_FORMAT, timestamp);
}
static void