[evolution-patches] [calendar-listview] fix for bug #274188
- From: "Chakravarthi P. S." <pchakravarthi novell com>
- To: evolution-patches gnome org
- Subject: [evolution-patches] [calendar-listview] fix for bug #274188
- Date: Tue, 30 Aug 2005 10:09:52 +0530
hi,
An all day appointment in list view shows
the start date as the previous day to the
creation of appointment.
This is because the zone information is not
properly set in the icaltimetype item (put
inside ECellDateEditValue) in get_dtstart()
in e-cal-model.c
The patch fixes this problem.
regards.
Index: e-cal-model.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-model.c,v
retrieving revision 1.61
diff -u -p -w -r1.61 e-cal-model.c
--- e-cal-model.c 24 Aug 2005 03:07:49 -0000 1.61
+++ e-cal-model.c 30 Aug 2005 04:29:22 -0000
@@ -393,6 +393,10 @@ get_dtstart (ECalModel *model, ECalModel
} else
tt_start = icaltime_from_timet (comp_data->instance_start, tt_start.is_date);
}
+
+ /* Make sure that the proper zone is set if priv has the zone information */
+ zone = priv->zone;
+ tt_start = icaltime_from_timet_with_zone (comp_data->instance_start, tt_start.is_date, zone);
if (!icaltime_is_valid_time (tt_start) || icaltime_is_null_time (tt_start))
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]