aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdm-dialog.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2007-11-07 04:15:01 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-11-07 04:15:01 +0800
commit77da5499bd2341cebf8e315478ec95432fa78765 (patch)
tree40999293640fbe693ce3a31d1aaea43e1faa1240 /src/pdm-dialog.c
parenta93d14f5580f252ff7eafea2f83aa835cca40f10 (diff)
downloadgsoc2013-epiphany-77da5499bd2341cebf8e315478ec95432fa78765.tar
gsoc2013-epiphany-77da5499bd2341cebf8e315478ec95432fa78765.tar.gz
gsoc2013-epiphany-77da5499bd2341cebf8e315478ec95432fa78765.tar.bz2
gsoc2013-epiphany-77da5499bd2341cebf8e315478ec95432fa78765.tar.lz
gsoc2013-epiphany-77da5499bd2341cebf8e315478ec95432fa78765.tar.xz
gsoc2013-epiphany-77da5499bd2341cebf8e315478ec95432fa78765.tar.zst
gsoc2013-epiphany-77da5499bd2341cebf8e315478ec95432fa78765.zip
Make the password dialog use ephy-time-helpers instead of stock strftime.
Fix bug #494158. svn path=/trunk/; revision=7642
Diffstat (limited to 'src/pdm-dialog.c')
-rw-r--r--src/pdm-dialog.c7
1 files changed, 2 insertions, 5 deletions
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 <gtk/gtklabel.h>
#include <gtk/gtkbox.h>
@@ -46,7 +47,6 @@
#include <gtk/gtktogglebutton.h>
#include <glib/gi18n.h>
-#include <time.h>
#include <string.h>
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);