aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/groupwise-features/ChangeLog8
-rw-r--r--plugins/groupwise-features/status-track.c17
2 files changed, 20 insertions, 5 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog
index ffdfd880b8..287c90c52f 100644
--- a/plugins/groupwise-features/ChangeLog
+++ b/plugins/groupwise-features/ChangeLog
@@ -1,3 +1,11 @@
+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
+
2006-01-06 Simon Zheng <simon.zheng@sun.com>
* junk-mail-settings.c:
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 ;
}