summaryrefslogtreecommitdiff
path: root/gdata/services/picasaweb/gdata-picasaweb-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdata/services/picasaweb/gdata-picasaweb-file.c')
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.c b/gdata/services/picasaweb/gdata-picasaweb-file.c
index 53aab33b..96db23a6 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.c
@@ -690,13 +690,13 @@ gdata_picasaweb_file_constructor (GType type, guint n_construct_params, GObjectC
if (_gdata_parsable_is_constructed_from_xml (GDATA_PARSABLE (object)) == FALSE) {
GDataPicasaWebFilePrivate *priv = GDATA_PICASAWEB_FILE (object)->priv;
- GTimeVal time_val;
+ gint64 time_val;
/* Set the edited and timestamp properties to the current time (creation time). bgo#599140
* 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->timestamp = (gint64) time_val.tv_sec * 1000;
- priv->edited = time_val.tv_sec;
+ time_val = g_get_real_time () / G_USEC_PER_SEC;
+ priv->timestamp = time_val * 1000;
+ priv->edited = time_val;
}
return object;