[evolution-groupwise] bug #599745 GW incorrect dates are displayed in message list for memos
- From: Punit Jain <jpunit src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-groupwise] bug #599745 GW incorrect dates are displayed in message list for memos
- Date: Tue, 17 May 2011 15:39:43 +0000 (UTC)
commit d7e072d4284e3a1484fd5bbdc4275d3dc95272ec
Author: Punit Jain <jpunit novell com>
Date: Tue May 17 21:08:12 2011 +0530
bug #599745 GW incorrect dates are displayed in message list for memos
src/server/e-gw-connection.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/server/e-gw-connection.c b/src/server/e-gw-connection.c
index 5a18ff6..9c4cfc8 100644
--- a/src/server/e-gw-connection.c
+++ b/src/server/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]