[evolution] Bug #631968 - Date wrongly displayed as Tomorrow.
- From: Bharath Acharya <abharath src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #631968 - Date wrongly displayed as Tomorrow.
- Date: Mon, 18 Oct 2010 05:20:26 +0000 (UTC)
commit 11f52b6fb78c734f074f196992cdbfb7a93aadfe
Author: Punit Jain <jpunit novell com>
Date: Mon Oct 18 10:49:24 2010 +0530
Bug #631968 - Date wrongly displayed as Tomorrow.
Taking absolute value of diff.
e-util/e-datetime-format.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c
index a277e93..11e7fb2 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"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]