From fd87e09b8df1edba1ee6fc2822893ee0c850fcd0 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 14 Jan 2013 21:12:07 +0100 Subject: Bug #691194 - Import .ics preview shows UTC time instead of local time --- calendar/importers/icalendar-importer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/importers') diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index d54a8876c5..7887cc8095 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -1138,6 +1138,9 @@ format_dt (const ECalComponentDateTime *dt, dt->value->zone = g_hash_table_lookup (timezones, dt->tzid); if (!dt->value->zone) dt->value->zone = icaltimezone_get_builtin_timezone_from_tzid (dt->tzid); + + if (!dt->value->zone && g_ascii_strcasecmp (dt->tzid, "UTC") == 0) + dt->value->zone = icaltimezone_get_utc_timezone (); } if (dt->value->zone) -- cgit