From 0f3a48d7db4a051e11fb8c56d25356d42b8643d8 Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Tue, 16 Apr 2013 00:33:49 +0200 Subject: [PATCH] Fix bug #2905 "Include the signature timestamp in the 'full signature information'" Format used is the same shown in summary view date column. Original patch by Fabian Keil, thanks! ;-) --- src/plugins/pgpcore/sgpgme.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c index df769f45c..71ec5eb47 100644 --- a/src/plugins/pgpcore/sgpgme.c +++ b/src/plugins/pgpcore/sgpgme.c @@ -265,6 +265,8 @@ gchar *sgpgme_sigstat_info_full(gpgme_ctx_t ctx, gpgme_verify_result_t status) sig = status->signatures; while (sig) { + char buf[100]; + struct tm lt; gpgme_user_id_t user = NULL; gpgme_key_t key; gpgme_error_t err; @@ -290,9 +292,12 @@ gchar *sgpgme_sigstat_info_full(gpgme_ctx_t ctx, gpgme_verify_result_t status) keyid = "?"; uid = "?"; } + + memset(buf, 0, sizeof(buf)); + fast_strftime(buf, sizeof(buf)-1, prefs_common.date_format, localtime_r(&sig->timestamp, <)); g_string_append_printf(siginfo, - _("Signature made using %s key ID %s\n"), - keytype, keyid); + _("Signature made on %s using %s key ID %s\n"), + buf, keytype, keyid); switch (gpg_err_code(sig->status)) { case GPG_ERR_NO_ERROR: -- 2.25.1