aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/g10.c1
-rw-r--r--g10/mainproc.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index a6c769728..3a4c2911e 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,7 @@
+Tue Sep 15 17:52:55 1998 Werner Koch (wk@(none))
+
+ * mainproc.c (check_sig_and_print): Replaced ascime by asctimestamp.
+
Mon Sep 14 11:40:52 1998 Werner Koch (wk@(none))
* seskey.c (make_session_key): Now detects weak keys.
diff --git a/g10/g10.c b/g10/g10.c
index a41ecb335..a13abd7ba 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -382,6 +382,7 @@ i18n_init(void)
#ifdef ENABLE_NLS
#ifdef HAVE_LC_MESSAGES
setlocale( LC_MESSAGES, "" );
+ setlocale( LC_TIME, "" );
#else
setlocale( LC_ALL, "" );
#endif
diff --git a/g10/mainproc.c b/g10/mainproc.c
index ccc529693..1e8af7e21 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -829,7 +829,6 @@ static int
check_sig_and_print( CTX c, KBNODE node )
{
PKT_signature *sig = node->pkt->pkt.signature;
- time_t stamp = sig->timestamp;
const char *astr, *tstr;
int rc;
@@ -838,7 +837,7 @@ check_sig_and_print( CTX c, KBNODE node )
return 0;
}
- tstr = asctime(localtime (&stamp));
+ tstr = asctimestamp(sig->timestamp);
astr = pubkey_algo_to_string( sig->pubkey_algo );
log_info(_("Signature made %.*s using %s key ID %08lX\n"),
(int)strlen(tstr)-1, tstr, astr? astr: "?", (ulong)sig->keyid[1] );