summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/divelist.c b/divelist.c
index ea2dcfb5b..849a8bd2d 100644
--- a/divelist.c
+++ b/divelist.c
@@ -378,15 +378,13 @@ static void date_data_func(GtkTreeViewColumn *col,
GtkTreeIter *iter,
gpointer data)
{
- int val, idx, nr;
+ int idx, nr;
struct tm tm;
timestamp_t when;
char buffer[40];
- gtk_tree_model_get(model, iter, DIVE_INDEX, &idx, DIVE_DATE, &val, -1);
+ gtk_tree_model_get(model, iter, DIVE_INDEX, &idx, DIVE_DATE, &when, -1);
nr = gtk_tree_model_iter_n_children(model, iter);
- /* 2038 problem */
- when = val;
utc_mkdate(when, &tm);
if (idx < 0) {