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/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 3091545104..bd9d8aba4d 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -835,17 +835,11 @@ static void set_timezone (GnomeCalendar *calendar) { GnomeCalendarPrivate *priv; - char *location; GList *l; priv = calendar->priv; - location = calendar_config_get_timezone (); - priv->zone = icaltimezone_get_builtin_timezone (location); - g_free (location); - - if (!priv->zone) - priv->zone = icaltimezone_get_utc_timezone (); + priv->zone = calendar_config_get_icaltimezone (); for (l = priv->clients_list; l != NULL; l = l->next) { ECal *client = l->data; -- cgit v1.2.3