From 77da5499bd2341cebf8e315478ec95432fa78765 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 6 Nov 2007 20:15:01 +0000 Subject: Make the password dialog use ephy-time-helpers instead of stock strftime. Fix bug #494158. svn path=/trunk/; revision=7642 --- src/pdm-dialog.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/pdm-dialog.c') diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index b0cf397ea..a7f98b8a1 100644 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -32,6 +32,7 @@ #include "ephy-string.h" #include "ephy-stock-icons.h" #include "ephy-debug.h" +#include "ephy-time-helpers.h" #include #include @@ -46,7 +47,6 @@ #include #include -#include #include typedef struct PdmActionInfo PdmActionInfo; @@ -456,10 +456,7 @@ show_cookies_properties (PdmDialog *dialog, else { 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); + str = eel_strdup_strftime ("%c", localtime_r (&info->expires, &t)); } label = gtk_label_new (str); g_free (str); -- cgit