Fix for the weekly event generation. Was reported on the bug tracking

1998-05-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c (ical_object_generate_events): Fix for the weekly event
	generation.  Was reported on the bug tracking system.

svn path=/trunk/; revision=237
This commit is contained in:
Miguel de Icaza
1998-05-25 21:51:34 +00:00
committed by Arturo Espinosa
parent d5658f0803
commit 63057dd048
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_object_generate_events): Fix for the weekly event
generation. Was reported on the bug tracking system.
1998-05-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-full-day.c (layout_children): Implemented ultra-cool

View File

@ -1099,7 +1099,7 @@ ical_object_generate_events (iCalObject *ico, time_t start, time_t end, calendar
/* Advance by day for scanning the week or by interval at week end */
if (tm->tm_wday == 6)
current = time_add_day (current, recur->interval);
current = time_add_day (current, (recur->interval-1) * 7 + 1);
else
current = time_add_day (current, 1);

View File

@ -1099,7 +1099,7 @@ ical_object_generate_events (iCalObject *ico, time_t start, time_t end, calendar
/* Advance by day for scanning the week or by interval at week end */
if (tm->tm_wday == 6)
current = time_add_day (current, recur->interval);
current = time_add_day (current, (recur->interval-1) * 7 + 1);
else
current = time_add_day (current, 1);

View File

@ -1099,7 +1099,7 @@ ical_object_generate_events (iCalObject *ico, time_t start, time_t end, calendar
/* Advance by day for scanning the week or by interval at week end */
if (tm->tm_wday == 6)
current = time_add_day (current, recur->interval);
current = time_add_day (current, (recur->interval-1) * 7 + 1);
else
current = time_add_day (current, 1);