[evolution/gnome-2-32] Bug #631968 - Date wrongly displayed as Tomorrow.



commit 31b57a0125f8d192e084a1cf32f88f4cead908fa
Author: Punit Jain <jpunit novell com>
Date:   Mon Oct 18 10:52:46 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]