[libgdata] Bug 599140 — Have albums initialise date to now by default



commit 4fca63c8e23ba788506f834228ff18ec1c8f152e
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sat Oct 24 10:44:51 2009 +0100

    Bug 599140 â?? Have albums initialise date to now by default
    
    Both albums and files now initialise their timestamps to the current
    date, rather than the Unix epoch. Closes: bgo#599140

 gdata/services/picasaweb/gdata-picasaweb-album.c |    3 +++
 gdata/services/picasaweb/gdata-picasaweb-file.c  |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gdata/services/picasaweb/gdata-picasaweb-album.c b/gdata/services/picasaweb/gdata-picasaweb-album.c
index af9371e..82c1ee1 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-album.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-album.c
@@ -432,6 +432,9 @@ gdata_picasaweb_album_init (GDataPicasaWebAlbum *self)
 	self->priv->georss_where = g_object_new (GDATA_TYPE_GEORSS_WHERE, NULL);
 	self->priv->visibility = GDATA_PICASAWEB_PRIVATE;
 
+	/* Initialise the timestamp to the current time (bgo#599140) */
+	g_get_current_time (&(self->priv->timestamp));
+
 	/* Connect to the notify::title signal from GDataEntry so our media:group title can be kept in sync */
 	g_signal_connect (GDATA_ENTRY (self), "notify::title", G_CALLBACK (notify_title_cb), NULL);
 	/* Connect to the notify::rights signal from GDataEntry so our gphoto:visibility can be kept in sync */
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.c b/gdata/services/picasaweb/gdata-picasaweb-file.c
index 25a534f..4a6e1ff 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.c
@@ -590,6 +590,9 @@ gdata_picasaweb_file_init (GDataPicasaWebFile *self)
 	self->priv->georss_where = g_object_new (GDATA_TYPE_GEORSS_WHERE, NULL);
 	self->priv->is_commenting_enabled = TRUE;
 
+	/* Initialise the timestamp to the current time (bgo#599140) */
+	g_get_current_time (&(self->priv->timestamp));
+
 	/* We need to keep atom:title (the canonical title for the file) in sync with media:group/media:title */
 	g_signal_connect (self, "notify::title", G_CALLBACK (notify_title_cb), NULL);
 	/* atom:summary (the canonical summary/caption for the file) in sync with media:group/media:description */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]