From 9fe2942fe8ed2a561c9a3098f8a3655ae2691fcd Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 6 Feb 2004 03:03:46 +0000 Subject: Convert the calendar_config_get_timezone and 2004-02-05 JP Rosevear * Convert the calendar_config_get_timezone and icaltimezone_get_builtin_timezone pair to just calendar_config_get_icaltimezone, this also guarantees we will have some timezone (even if its just UTC) svn path=/trunk/; revision=24642 --- calendar/gui/goto.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'calendar/gui/goto.c') diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c index 66c6ecbad4..89d37455ca 100644 --- a/calendar/gui/goto.c +++ b/calendar/gui/goto.c @@ -106,14 +106,12 @@ ecal_event (ECalendarItem *calitem, gpointer user_data) static struct tm get_current_time (ECalendarItem *calitem, gpointer data) { - char *location; icaltimezone *zone; struct tm tmp_tm = { 0 }; struct icaltimetype tt; /* Get the current timezone. */ - location = calendar_config_get_timezone (); - zone = icaltimezone_get_builtin_timezone (location); + zone = calendar_config_get_icaltimezone (); tt = icaltime_from_timet_with_zone (time (NULL), FALSE, zone); -- cgit v1.2.3