[evolution/gnome-3-6] 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/gnome-3-6] Bug #691194 - Import .ics preview shows UTC time instead of local time
- Date: Mon, 14 Jan 2013 20:14:07 +0000 (UTC)
commit 491dbe864c3bff4d01a7406182f16e51d302b7e2
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 14 21:13:39 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 89e5f0c..f133790 100644
--- a/calendar/importers/icalendar-importer.c
+++ b/calendar/importers/icalendar-importer.c
@@ -1143,6 +1143,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]