Re: [evolution-patches] fix for the bug 74265 [calendar]
- From: chenthill <pchenthill novell com>
- To: patches <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] fix for the bug 74265 [calendar]
- Date: Tue, 05 Apr 2005 09:22:29 +0530
Oops, sorry attached a wrong patch. Resending with the right one.
thanks, Chenthill.
On Mon, 2005-04-04 at 14:49 +0530, chenthill wrote:
> Hi,
> Have attached the fix for the bug 74265.
>
> thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/itip-formatter/ChangeLog,v
retrieving revision 1.42
diff -u -p -r1.42 ChangeLog
--- ChangeLog 31 Mar 2005 18:03:16 -0000 1.42
+++ ChangeLog 4 Apr 2005 09:16:34 -0000
@@ -1,3 +1,10 @@
+2005-03-31 Chenthill Palanisamy <pchenthill novell com>
+
+ Fixes #74265
+ * itip-view.c (format_date_and_time_x): In time_days_in_month
+ the months are indexed from 0, so subtract one from the month
+ argument and send it.
+
2005-03-31 JP Rosevear <jpr novell com>
Fixes #73844
Index: itip-view.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/itip-formatter/itip-view.c,v
retrieving revision 1.12
diff -u -p -r1.12 itip-view.c
--- itip-view.c 3 Feb 2005 16:53:35 -0000 1.12
+++ itip-view.c 4 Apr 2005 09:16:35 -0000
@@ -139,7 +139,7 @@ format_date_and_time_x (struct tm *date
/* Calculate a normalized "tomorrow" */
tomorrow_tm = *current_tm;
- if (tomorrow_tm.tm_mday == time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon)) {
+ if (tomorrow_tm.tm_mday == time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon - 1)) {
tomorrow_tm.tm_mday = 1;
if (tomorrow_tm.tm_mon == 11) {
tomorrow_tm.tm_mon = 1;
@@ -153,8 +153,8 @@ format_date_and_time_x (struct tm *date
/* Calculate a normalized "next seven days" */
week_tm = *current_tm;
- if (week_tm.tm_mday + 6 > time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon)) {
- week_tm.tm_mday = (week_tm.tm_mday + 6) % time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon);
+ if (week_tm.tm_mday + 6 > time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon - 1)) {
+ week_tm.tm_mday = (week_tm.tm_mday + 6) % time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon - 1);
if (week_tm.tm_mon == 11) {
week_tm.tm_mon = 1;
week_tm.tm_year++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]