aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-edit_publish_dialog.c')
-rw-r--r--src/fs/gnunet-fs-gtk-edit_publish_dialog.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
index 980696b1..aa111bc0 100644
--- a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
+++ b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
@@ -914,7 +914,6 @@ file_information_extract (void *cls, struct GNUNET_FS_FileInformation *fi,
914 GtkBuilder *builder = GTK_BUILDER (cls); 914 GtkBuilder *builder = GTK_BUILDER (cls);
915 GtkImage *img; 915 GtkImage *img;
916 GdkPixbuf *pixbuf; 916 GdkPixbuf *pixbuf;
917 struct tm *t;
918 int year; 917 int year;
919 time_t tp; 918 time_t tp;
920 GtkListStore *ls; 919 GtkListStore *ls;
@@ -939,12 +938,7 @@ file_information_extract (void *cls, struct GNUNET_FS_FileInformation *fi,
939 gtk_image_set_from_pixbuf (img, pixbuf); 938 gtk_image_set_from_pixbuf (img, pixbuf);
940 } 939 }
941 } 940 }
942 tp = bo->expiration_time.abs_value / 1000; /* ms to seconds */ 941 year = (int) GNUNET_FS_time_to_year (bo->expiration_time);
943 t = gmtime (&tp);
944 if (t == NULL)
945 year = 0;
946 else
947 year = t->tm_year + 1900;
948 gtk_spin_button_set_value (GTK_SPIN_BUTTON 942 gtk_spin_button_set_value (GTK_SPIN_BUTTON
949 (gtk_builder_get_object 943 (gtk_builder_get_object
950 (builder, 944 (builder,