[evolution-data-server] return the proper timezone to get the counts right in all timezones.
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] return the proper timezone to get the counts right in all timezones.
- Date: Tue, 14 Jul 2009 10:23:19 +0000 (UTC)
commit a24009ba28b93bd941a50aeb05eba6b4982de637
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Tue Jul 14 14:39:02 2009 +0530
return the proper timezone to get the counts right in all timezones.
.../groupwise/e-cal-backend-groupwise-utils.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
index c39c9f8..02f2421 100644
--- a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
+++ b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
@@ -72,8 +72,9 @@ get_recur_count (ECalComponent *comp, time_t instance_start, time_t instance_end
static icaltimezone *
resolve_tzid_cb (const gchar *tzid, gpointer data)
{
- /* do nothing.. since we are interested only in the event date */
- return NULL;
+ icaltimezone *zone = icaltimezone_get_builtin_timezone_from_tzid (tzid);
+
+ return zone;
}
const gchar *
@@ -491,7 +492,7 @@ get_actual_count (ECalComponent *comp, ECalBackendGroupwise *cbgw)
dzone = e_cal_backend_groupwise_get_default_zone (cbgw);
utc = icaltimezone_get_utc_timezone ();
-
+
if (dzone)
e_cal_recur_generate_instances (comp, -1, -1,get_recur_count, &count, resolve_tzid_cb, NULL, (icaltimezone *) dzone);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]