Proposed patch to the End of Recurrence problem


This patch fixes the bug in "End on date" recurrence in gnomecal. The
problem was, that the last day was "lost". Problem is, that the rrule has
time T000000, and the event eg. T140000. Thus the comparison function in
calobj.c misses the last day as !(000000 > 140000).

To fix, during parsing of the enddate, I add 86400 secs (1 day).

Comments or can I commit ?

Index: calobj.c
RCS file: /cvs/gnome/gnome-pim/gncal/calobj.c,v
retrieving revision 1.57
diff -r1.57 calobj.c
> 	g_message("enndate = %s",*str);
< 		o->recur->_enddate = time_from_isodate (*str);
> 		/* As the rrule has T000000 as hour:min stamp, we add
> 		   86400 secs to make the rrule end at the end-of-
> 		   day, instead of beginning-of-day */
> 		o->recur->_enddate = time_from_isodate (*str) + 86400;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]