changeset 18241:83ea1733979b

This is a less dumb way to make sure we don't wrap
author Mark Doliner <mark@kingant.net>
date Sat, 23 Jun 2007 18:53:14 +0000
parents bc4518599c10
children 8119af5b3649
files pidgin/gtkblist.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sat Jun 23 06:32:09 2007 +0000
+++ b/pidgin/gtkblist.c	Sat Jun 23 18:53:14 2007 +0000
@@ -2976,10 +2976,11 @@
 		signon = purple_presence_get_login_time(presence);
 		if (full && PURPLE_BUDDY_IS_ONLINE(b) && signon > 0)
 		{
-			if (time(NULL) - signon > 63072000 /* 2 years */) {
+			if (signon > time(NULL)) {
 				/*
-				 * Our local clock must be wrong, show the actual
-				 * date instead of "4 days", etc.
+				 * They signed on in the future?!  Our local clock
+				 * must be wrong, show the actual date instead of
+				 * "4 days", etc.
 				 */
 				tmp = g_strdup(purple_date_format_long(localtime(&signon)));
 			} else