From ca4617f2301c7a70841675ea80217c06a67363f2 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 28 Mar 2013 18:32:31 +0100 Subject: [PATCH 1/4] Include the signature timestamp in the 'full signature information' Use the summary "Date format" for now. --- 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 9749142..af9086c 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 %s using %s key ID %s\n"), + buf, keytype, keyid); switch (gpg_err_code(sig->status)) { case GPG_ERR_NO_ERROR: -- 1.8.2