[evolution] Bug #691194 - Import .ics preview shows UTC time instead of local time



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]