From: Thomas Roessler Date: Thu, 25 May 2000 12:21:29 +0000 (+0000) Subject: Use strftime for time indications with PGP verification. X-Git-Tag: mutt-1-3-3-rel~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d13942c52824074019a97362b8a0bea236571a6;p=mutt Use strftime for time indications with PGP verification. --- diff --git a/pgp.c b/pgp.c index cd457bac..40c374a8 100644 --- 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); }