[evolution-data-server/gnome-3-0] bug #599745 GW incorrect dates are displayed in message list for memos



commit 50e85f6d8717067122ff8db099f219314cb75f42
Author: Punit Jain <jpunit novell com>
Date:   Tue May 17 20:58:55 2011 +0530

    bug #599745 GW incorrect dates are displayed in message list for memos

 servers/groupwise/e-gw-connection.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/servers/groupwise/e-gw-connection.c b/servers/groupwise/e-gw-connection.c
index a4e281e..169e129 100644
--- a/servers/groupwise/e-gw-connection.c
+++ b/servers/groupwise/e-gw-connection.c
@@ -1817,9 +1817,7 @@ e_gw_connection_get_date_from_string (const gchar *dtstring)
 
 	g_return_val_if_fail (dtstring != NULL, 0);
 
-	if (g_time_val_from_iso8601 (dtstring, &t_val)) {
-		t = (time_t) t_val.tv_sec;
-	} else if (strlen (dtstring) == 8) {
+	if (strlen (dtstring) == 8) {
 		/* It might be a date value */
 		GDate date;
 		struct tm tt;
@@ -1843,6 +1841,8 @@ e_gw_connection_get_date_from_string (const gchar *dtstring)
 		g_date_to_struct_tm (&date, &tt);
 		t = mktime (&tt);
 
+	} else if (g_time_val_from_iso8601 (dtstring, &t_val)) {
+		t = (time_t) t_val.tv_sec;
 	} else
 		g_warning ("Could not parse the string \n");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]