aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/status-track.c
diff options
context:
space:
mode:
authorVivek Jain <jvivek@novell.com>2006-01-18 17:40:55 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2006-01-18 17:40:55 +0800
commit3dfc3eb7be1de68d2382d532d51c639ac19428d8 (patch)
tree161a873a1abfaf93c9e056d7c86370956c1745fe /plugins/groupwise-features/status-track.c
parent4c9287ed7a9707dce9b1abff77ea2b3c7ad7356b (diff)
downloadgsoc2013-evolution-3dfc3eb7be1de68d2382d532d51c639ac19428d8.tar.gz
gsoc2013-evolution-3dfc3eb7be1de68d2382d532d51c639ac19428d8.tar.zst
gsoc2013-evolution-3dfc3eb7be1de68d2382d532d51c639ac19428d8.zip
decode the date to local time **Fixes #314755 also fixed some styling
2006-01-18 Vivek Jain <jvivek@novell.com> * status-track.c : (add_detail): decode the date to local time **Fixes #314755 also fixed some styling issues. Committed on behalf of Vivek - partha svn path=/trunk/; revision=31230
Diffstat (limited to 'plugins/groupwise-features/status-track.c')
-rw-r--r--plugins/groupwise-features/status-track.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/plugins/groupwise-features/status-track.c b/plugins/groupwise-features/status-track.c
index 87399335e5..0db7f629b6 100644
--- a/plugins/groupwise-features/status-track.c
+++ b/plugins/groupwise-features/status-track.c
@@ -30,6 +30,7 @@
#include <gtk/gtk.h>
#include "camel/camel-folder.h"
+#include "camel/camel-mime-utils.h"
#include "camel/camel-medium.h"
#include "camel/camel-mime-message.h"
#include <mail/em-popup.h>
@@ -55,11 +56,16 @@ add_recipient (GtkTable *table, char *recp, int row)
int
add_detail (GtkTable *table, char *label, char *value, int row)
{
- GtkWidget *widget ;
- time_t time = e_gw_connection_get_date_from_string (value) ;
- char *str = ctime (&time) ;
-
- str [strlen(str)-1] = '\0' ;
+ GtkWidget *widget;
+ time_t time;
+ time_t actual_time;
+ char *str;
+
+ time = e_gw_connection_get_date_from_string (value);
+ actual_time = camel_header_decode_date (ctime(&time), NULL);
+ *str = ctime (&actual_time);
+
+ str [strlen(str)-1] = '\0';
widget = gtk_label_new (label);
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
@@ -67,6 +73,7 @@ add_detail (GtkTable *table, char *label, char *value, int row)
widget = gtk_label_new (str);
gtk_table_attach (table, widget , 2, 3, row, row + 1, GTK_FILL, 0, 0, 0);
row++;
+
return row ;
}