aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 354e389..c9107ce 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -160,7 +160,7 @@ getDateProximity(GDateTime* now, GDateTime* time)
gint time_year, time_month, time_day;
// did it already happen?
- if (g_date_time_compare (now, time) > 0)
+ if (g_date_time_difference(time, now) < -G_USEC_PER_SEC)
return DATE_PROXIMITY_FAR;
// does it happen today?