aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-09-19 15:00:43 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-09-19 15:00:43 +0800
commita9cbbe05130f5931cd87e84308f10f3e77b9d3bd (patch)
treed66fbbc04a5ea02cf119347e4c539e2bbd66e220 /plugins
parent78ef1993b0cbfa5b1254f544f1574309fafcbc1e (diff)
downloadgsoc2013-evolution-a9cbbe05130f5931cd87e84308f10f3e77b9d3bd.tar
gsoc2013-evolution-a9cbbe05130f5931cd87e84308f10f3e77b9d3bd.tar.gz
gsoc2013-evolution-a9cbbe05130f5931cd87e84308f10f3e77b9d3bd.tar.bz2
gsoc2013-evolution-a9cbbe05130f5931cd87e84308f10f3e77b9d3bd.tar.lz
gsoc2013-evolution-a9cbbe05130f5931cd87e84308f10f3e77b9d3bd.tar.xz
gsoc2013-evolution-a9cbbe05130f5931cd87e84308f10f3e77b9d3bd.tar.zst
gsoc2013-evolution-a9cbbe05130f5931cd87e84308f10f3e77b9d3bd.zip
Fixes #315345
svn path=/trunk/; revision=30357
Diffstat (limited to 'plugins')
-rw-r--r--plugins/itip-formatter/ChangeLog6
-rw-r--r--plugins/itip-formatter/itip-view.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 92d78c2365..96cf9e520c 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -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
diff --git a/plugins/itip-formatter/itip-view.c b/plugins/itip-formatter/itip-view.c
index a95eb239c1..48385a4c66 100644
--- a/plugins/itip-formatter/itip-view.c
+++ b/plugins/itip-formatter/itip-view.c
@@ -148,7 +148,7 @@ format_date_and_time_x (struct tm *date_tm,
/* 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_tm,
/* 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++;