From 6781dadc303b4850a96b5011f9880a8ca8487cd4 Mon Sep 17 00:00:00 2001 From: Anton Todorov Date: Sun, 6 Aug 2023 14:27:58 +0300 Subject: [PATCH] emv: display the transaction time as HH:MM:SS in the transaction log Signed-off-by: Anton Todorov --- client/src/emv/cmdemv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/emv/cmdemv.c b/client/src/emv/cmdemv.c index 2282698d5..c322f6406 100644 --- a/client/src/emv/cmdemv.c +++ b/client/src/emv/cmdemv.c @@ -233,6 +233,11 @@ static int emv_parse_log(struct tlvdb *ttdb, const uint8_t *d, size_t n) { PrintAndLogEx(INFO, "%-30s... " _YELLOW_("20%02x-%02x-%02x"), s, d[pos], d[pos + 1], d[pos + 2]); } break; + case 0x9F21: + if (tpitem->len == 3) { + PrintAndLogEx(INFO, "%-30s... " _YELLOW_("%02x:%02x:%02x"), s, d[pos], d[pos + 1], d[pos + 2]); + } + break; default: PrintAndLogEx(INFO, "%-30s... " _YELLOW_("%s"), s, sprint_hex_inrow(d + pos, tpitem->len)); break;