aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-04 03:23:16 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-04 03:23:16 +0800
commit605eda115a7061488d2fb0e4264338598ea904d4 (patch)
treed89f84d2c14ff39140e063a3bbdd635ec58ac264 /src
parent34fa8474852c0efb0002dba6ad8daffbee1177d5 (diff)
downloadgsoc2013-epiphany-605eda115a7061488d2fb0e4264338598ea904d4.tar
gsoc2013-epiphany-605eda115a7061488d2fb0e4264338598ea904d4.tar.gz
gsoc2013-epiphany-605eda115a7061488d2fb0e4264338598ea904d4.tar.bz2
gsoc2013-epiphany-605eda115a7061488d2fb0e4264338598ea904d4.tar.lz
gsoc2013-epiphany-605eda115a7061488d2fb0e4264338598ea904d4.tar.xz
gsoc2013-epiphany-605eda115a7061488d2fb0e4264338598ea904d4.tar.zst
gsoc2013-epiphany-605eda115a7061488d2fb0e4264338598ea904d4.zip
Fix strftime(3) usage.
2003-12-03 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/GtkNSSDialogs.cpp: * src/pdm-dialog.c: (show_cookies_properties): Fix strftime(3) usage.
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);