aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-01-15 04:12:07 +0800
committerMilan Crha <mcrha@redhat.com>2013-01-15 04:12:07 +0800
commitfd87e09b8df1edba1ee6fc2822893ee0c850fcd0 (patch)
treecbda7c61e0762b3a5d821977ff5b587e0faf83d6 /calendar
parent6aeb10160ed690e1c0595321662720987dda2b5e (diff)
downloadgsoc2013-evolution-fd87e09b8df1edba1ee6fc2822893ee0c850fcd0.tar.gz
gsoc2013-evolution-fd87e09b8df1edba1ee6fc2822893ee0c850fcd0.tar.zst
gsoc2013-evolution-fd87e09b8df1edba1ee6fc2822893ee0c850fcd0.zip
Bug #691194 - Import .ics preview shows UTC time instead of local time
Diffstat (limited to 'calendar')
-rw-r--r--calendar/importers/icalendar-importer.c3
1 files changed, 3 insertions, 0 deletions
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)