[evolution-patches] Fix for the bug #315345 [calendar]
- From: chen <pchenthill novell com>
- To: patches <evolution-patches gnome org>
- Subject: [evolution-patches] Fix for the bug #315345 [calendar]
- Date: Mon, 12 Sep 2005 17:30:52 +0530
Hi,
Have attached the patch which the fixes the bug.
thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/itip-formatter/ChangeLog,v
retrieving revision 1.61
diff -u -p -r1.61 ChangeLog
--- ChangeLog 29 Aug 2005 04:19:42 -0000 1.61
+++ ChangeLog 12 Sep 2005 11:38:05 -0000
@@ -1,3 +1,9 @@
+2005-09-12 Chenthill Palanisamy <pchenthill novell com>
+
+ Fixes #315345
+ * itip-view.c: (format_date_and_time_x): Send the
+ month as it as without subtracting one.
+
2005-08-29 Chenthill Palanisamy <pchenthill novell com>
Fixes #313534
Index: itip-view.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/itip-formatter/itip-view.c,v
retrieving revision 1.17
diff -u -p -r1.17 itip-view.c
--- itip-view.c 24 Aug 2005 03:13:11 -0000 1.17
+++ itip-view.c 12 Sep 2005 11:38:06 -0000
@@ -148,7 +148,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 - 1)) {
+ if (tomorrow_tm.tm_mday == time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon)) {
tomorrow_tm.tm_mday = 1;
if (tomorrow_tm.tm_mon == 11) {
tomorrow_tm.tm_mon = 1;
@@ -162,8 +162,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 - 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_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_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]