aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pdm-dialog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index df1002f23..69c63b4ae 100755
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -946,7 +946,11 @@ show_cookies_properties (PdmDialog *dialog,
}
else
{
- str = g_strdup_printf ("%s",ctime((time_t*)&info->expires));
+ struct tm t;
+ char s[128];
+ const char *fmt_hack = "%c";
+ strftime (s, sizeof(s), fmt_hack, localtime_r (&info->expires, &t));
+ str = g_locale_to_utf8 (s, -1, NULL, NULL, NULL);
}
label = gtk_label_new (str);
g_free (str);