From 11f52b6fb78c734f074f196992cdbfb7a93aadfe Mon Sep 17 00:00:00 2001 From: Punit Jain Date: Mon, 18 Oct 2010 10:49:24 +0530 Subject: Bug #631968 - Date wrongly displayed as Tomorrow. Taking absolute value of diff. --- e-util/e-datetime-format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c index a277e93fdb..11e7fb2707 100644 --- a/e-util/e-datetime-format.c +++ b/e-util/e-datetime-format.c @@ -200,6 +200,8 @@ format_relative_date (time_t tvalue, time_t ttoday, const struct tm *value, cons if (diff < 0) future = TRUE; + diff = ABS (diff); + if (diff <= 1) { if (future) res = g_strdup (_("Tomorrow")); -- cgit v1.2.3