commit 0f3a48d7db4a051e11fb8c56d25356d42b8643d8
parent 8528776ec96ecb6abbfc1c5a1fcc923fd89fcf4d
Author: Ricardo Mones <ricardo@mones.org>
Date: Tue, 16 Apr 2013 00:33:49 +0200
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! ;-)
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git 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: