evolution r36655 - trunk/plugins/itip-formatter



Author: msuman
Date: Mon Oct 20 03:51:11 2008
New Revision: 36655
URL: http://svn.gnome.org/viewvc/evolution?rev=36655&view=rev

Log:
Milan Crha  <mcrha redhat com> ** Fix for bug #514989 (Calculate tomorrow from current time, not from the date to convert).

Modified:
   trunk/plugins/itip-formatter/ChangeLog
   trunk/plugins/itip-formatter/itip-view.c

Modified: trunk/plugins/itip-formatter/itip-view.c
==============================================================================
--- trunk/plugins/itip-formatter/itip-view.c	(original)
+++ trunk/plugins/itip-formatter/itip-view.c	Mon Oct 20 03:51:11 2008
@@ -152,7 +152,7 @@
 	/* 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]