summaryrefslogtreecommitdiff
path: root/gdata/services/contacts/gdata-contacts-contact.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdata/services/contacts/gdata-contacts-contact.c')
-rw-r--r--gdata/services/contacts/gdata-contacts-contact.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdata/services/contacts/gdata-contacts-contact.c b/gdata/services/contacts/gdata-contacts-contact.c
index 4f511315..eb4148d0 100644
--- a/gdata/services/contacts/gdata-contacts-contact.c
+++ b/gdata/services/contacts/gdata-contacts-contact.c
@@ -582,12 +582,10 @@ gdata_contacts_contact_constructor (GType type, guint n_construct_params, GObjec
if (_gdata_parsable_is_constructed_from_xml (GDATA_PARSABLE (object)) == FALSE) {
GDataContactsContactPrivate *priv = GDATA_CONTACTS_CONTACT (object)->priv;
- GTimeVal time_val;
/* Set the edited property to the current time (creation time). We don't do this in *_init() since that would cause
* setting it from parse_xml() to fail (duplicate element). */
- g_get_current_time (&time_val);
- priv->edited = time_val.tv_sec;
+ priv->edited = g_get_real_time () / G_USEC_PER_SEC;
}
return object;