From 2995dc7ab7582876e0f59a5d948aee97c8502485 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 14 Jan 2005 15:09:11 +0000 Subject: handle UTC dtstart/dtend properly 2005-01-14 JP Rosevear * itip-formatter.c (format_itip_object): handle UTC dtstart/dtend properly svn path=/trunk/; revision=28401 --- plugins/itip-formatter/itip-formatter.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/itip-formatter/itip-formatter.c') diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 09dde217ff..ca194ad9ae 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -1430,7 +1430,9 @@ format_itip_object (EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObject /* If the timezone is not in the component, guess the local time */ /* Should we guess if the timezone is an olsen name somehow? */ - if (!datetime.value->is_utc && datetime.tzid) + if (datetime.value->is_utc) + from_zone = icaltimezone_get_utc_timezone (); + else if (!datetime.value->is_utc && datetime.tzid) from_zone = icalcomponent_get_timezone (pitip->top_level, datetime.tzid); else from_zone = NULL; @@ -1449,7 +1451,9 @@ format_itip_object (EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObject /* If the timezone is not in the component, guess the local time */ /* Should we guess if the timezone is an olsen name somehow? */ - if (!datetime.value->is_utc && datetime.tzid) + if (datetime.value->is_utc) + from_zone = icaltimezone_get_utc_timezone (); + else if (!datetime.value->is_utc && datetime.tzid) from_zone = icalcomponent_get_timezone (pitip->top_level, datetime.tzid); else from_zone = NULL; -- cgit