[evolution-patches] calendar/gui/e-pub-utils.c: use icaltime_compare and not icaltime_compare_date_only



Hi Guys,

this patch is to use icaltime_compare instead of
icaltime_compare_date_only in checking out if the calendar was just
published, as it has 3 second accuracy, so testing the date only isnt
appropriate :)

patch attached.

Cheers,
Trent
Bur.st

-- 
Need advertising? Want to reach your consumer? For just $200 you can have
your advertisement in my signature for 2 months! cheap, just call 1800-SIGADS
Index: calendar/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2220
diff -u -r1.2220 ChangeLog
--- calendar/ChangeLog	29 Mar 2004 06:16:45 -0000	1.2220
+++ calendar/ChangeLog	21 Apr 2004 12:45:46 -0000
@@ -1,3 +1,9 @@
+2004-04-21  Trent Lloyd  <lathiat bur st>
+
+	* gui/e-pub-utils.c: (just_published) use icaltime_compare and not
+	icaltime_compare_date_only because this relies on testing if
+	something had happened in the last 3 seconds
+
 2004-03-29  Kidd Wang  <kidd wang sun com>
 
 	* gui/e-calendar-view.c: (e_calendar_view_class_init): remove the
Index: calendar/gui/e-pub-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-pub-utils.c,v
retrieving revision 1.2
diff -u -r1.2 e-pub-utils.c
--- calendar/gui/e-pub-utils.c	16 Mar 2004 23:18:00 -0000	1.2
+++ calendar/gui/e-pub-utils.c	21 Apr 2004 12:45:46 -0000
@@ -183,7 +183,7 @@
 		pubtime_itt  = icaltime_from_string (last_pub_time);
 		adjust_itt = icaltime_current_time_with_zone (utc);
 		icaltime_adjust (&adjust_itt, 0, 0, 0, 3);
-		if (icaltime_compare_date_only (pubtime_itt, adjust_itt) < 0)
+		if (icaltime_compare (pubtime_itt, adjust_itt) < 0)
 			return TRUE;
 	}
 


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