aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter/itip-view.c
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2008-10-20 11:51:11 +0800
committerSuman Manjunath <msuman@src.gnome.org>2008-10-20 11:51:11 +0800
commit34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db (patch)
tree854e912f8133b57d79ed5b55d6d12a281618e8bd /plugins/itip-formatter/itip-view.c
parent3acdc755d63edcc65ef58adefbced984d37e7c50 (diff)
downloadgsoc2013-evolution-34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db.tar
gsoc2013-evolution-34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db.tar.gz
gsoc2013-evolution-34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db.tar.bz2
gsoc2013-evolution-34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db.tar.lz
gsoc2013-evolution-34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db.tar.xz
gsoc2013-evolution-34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db.tar.zst
gsoc2013-evolution-34fc37b5d9aecf9b339b99b8a0fd3d579e29d5db.zip
Milan Crha <mcrha@redhat.com> ** Fix for bug #514989 (Calculate tomorrow from current time, not from the date to convert).
svn path=/trunk/; revision=36655
Diffstat (limited to 'plugins/itip-formatter/itip-view.c')
-rw-r--r--plugins/itip-formatter/itip-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/itip-formatter/itip-view.c b/plugins/itip-formatter/itip-view.c
index 8055420d67..92a8460e48 100644
--- a/plugins/itip-formatter/itip-view.c
+++ b/plugins/itip-formatter/itip-view.c
@@ -152,7 +152,7 @@ format_date_and_time_x (struct tm *date_tm,
/* Calculate a normalized "tomorrow" */
tomorrow_tm = *current_tm;
/* Don't need this if date is in the past. Also, year assumption won't fail. */
- if (date_tm->tm_year >= current_tm->tm_year && tomorrow_tm.tm_mday == time_days_in_month (date_tm->tm_year + 1900, date_tm->tm_mon)) {
+ if (date_tm->tm_year >= current_tm->tm_year && tomorrow_tm.tm_mday == time_days_in_month (current_tm->tm_year + 1900, current_tm->tm_mon)) {
tomorrow_tm.tm_mday = 1;
if (tomorrow_tm.tm_mon == 11) {
tomorrow_tm.tm_mon = 1;