[evolution] Bug #691194 - Import .ics preview shows UTC time instead of local time
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #691194 - Import .ics preview shows UTC time instead of local time
- Date: Mon, 14 Jan 2013 20:12:50 +0000 (UTC)
commit fd87e09b8df1edba1ee6fc2822893ee0c850fcd0
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 14 21:12:07 2013 +0100
Bug #691194 - Import .ics preview shows UTC time instead of local time
calendar/importers/icalendar-importer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c
index d54a887..7887cc8 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]