gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r18829 - gnunet-gtk/src/fs


From: gnunet
Subject: [GNUnet-SVN] r18829 - gnunet-gtk/src/fs
Date: Mon, 26 Dec 2011 20:31:45 +0100

Author: grothoff
Date: 2011-12-26 20:31:45 +0100 (Mon, 26 Dec 2011)
New Revision: 18829

Modified:
   gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
Log:
-use time_to_year

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c       2011-12-26 
19:31:18 UTC (rev 18828)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c       2011-12-26 
19:31:45 UTC (rev 18829)
@@ -914,7 +914,6 @@
   GtkBuilder *builder = GTK_BUILDER (cls);
   GtkImage *img;
   GdkPixbuf *pixbuf;
-  struct tm *t;
   int year;
   time_t tp;
   GtkListStore *ls;
@@ -939,12 +938,7 @@
       gtk_image_set_from_pixbuf (img, pixbuf);
     }
   }
-  tp = bo->expiration_time.abs_value / 1000;    /* ms to seconds */
-  t = gmtime (&tp);
-  if (t == NULL)
-    year = 0;
-  else
-    year = t->tm_year + 1900;
+  year = (int) GNUNET_FS_time_to_year (bo->expiration_time);
   gtk_spin_button_set_value (GTK_SPIN_BUTTON
                              (gtk_builder_get_object
                               (builder,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]