From 861de26de348c0d9a8272f788527ce91408a1e72 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 14 Jan 2002 20:28:10 +0000 Subject: use icaltimetype_to_tm 2002-01-14 JP Rosevear * gui/gnome-cal.c (get_current_time): use icaltimetype_to_tm svn path=/trunk/; revision=15320 --- calendar/gui/gnome-cal.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'calendar/gui/gnome-cal.c') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index bc9e426ef4..664fac4bc8 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -642,13 +642,7 @@ get_current_time (ECalendarItem *calitem, gpointer data) cal->priv->zone); /* Now copy it to the struct tm and return it. */ - tmp_tm.tm_year = tt.year - 1900; - tmp_tm.tm_mon = tt.month - 1; - tmp_tm.tm_mday = tt.day; - tmp_tm.tm_hour = tt.hour; - tmp_tm.tm_min = tt.minute; - tmp_tm.tm_sec = tt.second; - tmp_tm.tm_isdst = -1; + tmp_tm = icaltimetype_to_tm (&tt); return tmp_tm; } -- cgit