aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPunit Jain <jpunit@novell.com>2010-10-18 13:19:24 +0800
committerBharath Acharya <abharath@novell.com>2010-10-18 13:19:24 +0800
commit11f52b6fb78c734f074f196992cdbfb7a93aadfe (patch)
tree5e2fe501dd7266abdea341cdfe4ee56feeedf773
parentbed8e97cd73a90015b33826a6f543fb190204609 (diff)
downloadgsoc2013-evolution-11f52b6fb78c734f074f196992cdbfb7a93aadfe.tar
gsoc2013-evolution-11f52b6fb78c734f074f196992cdbfb7a93aadfe.tar.gz
gsoc2013-evolution-11f52b6fb78c734f074f196992cdbfb7a93aadfe.tar.bz2
gsoc2013-evolution-11f52b6fb78c734f074f196992cdbfb7a93aadfe.tar.lz
gsoc2013-evolution-11f52b6fb78c734f074f196992cdbfb7a93aadfe.tar.xz
gsoc2013-evolution-11f52b6fb78c734f074f196992cdbfb7a93aadfe.tar.zst
gsoc2013-evolution-11f52b6fb78c734f074f196992cdbfb7a93aadfe.zip
Bug #631968 - Date wrongly displayed as Tomorrow.
Taking absolute value of diff.
-rw-r--r--e-util/e-datetime-format.c2
1 files changed, 2 insertions, 0 deletions
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"));