]> granicus.if.org Git - mutt/commitdiff
Use strftime for time indications with PGP verification.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 25 May 2000 12:21:29 +0000 (12:21 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 25 May 2000 12:21:29 +0000 (12:21 +0000)
pgp.c

diff --git a/pgp.c b/pgp.c
index cd457bac3c742de63af7af809c6e557c7c2538c5..40c374a8fe43b62f6ab86391b78fb5556a97de14 100644 (file)
--- a/pgp.c
+++ b/pgp.c
@@ -132,14 +132,13 @@ static void pgp_current_time (STATE *s)
   time_t t;
   char p[STRING];
 
-  state_puts (_("[-- PGP output follows (current time: "), s);
-
   t = time (NULL);
-  strfcpy (p, asctime (localtime (&t)), sizeof (p));
-  p[mutt_strlen (p) - 1] = 0; /* kill the newline */
+  setlocale (LC_TIME, "");
+  strftime (p, sizeof (p),
+           _("[-- PGP output follows (current time: %c) --]\n"),
+           localtime (&t));
+  setlocale (LC_TIME, "C");
   state_puts (p, s);
-
-  state_puts (") --]\n", s);
 }