1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

legacy/stellar: fix timebounds display (#582)

This commit is contained in:
matejcik 2019-09-30 15:52:40 +02:00
parent 69142e56e7
commit d48c5c6450

View File

@ -1699,13 +1699,13 @@ void stellar_layoutTransactionSummary(const StellarSignTx *msg) {
memzero(str_timebound, sizeof(str_timebound));
timebound = (time_t)msg->timebounds_end;
strlcpy(str_lines[0], _("Valid from:"), sizeof(str_lines[0]));
strlcpy(str_lines[2], _("Valid to:"), sizeof(str_lines[2]));
if (timebound) {
tm = gmtime(&timebound);
strftime(str_timebound, sizeof(str_timebound), "%F %T (UTC)", tm);
strlcpy(str_lines[1], str_timebound, sizeof(str_lines[1]));
strlcpy(str_lines[3], str_timebound, sizeof(str_lines[3]));
} else {
strlcpy(str_lines[1], _("[no restriction]"), sizeof(str_lines[1]));
strlcpy(str_lines[3], _("[no restriction]"), sizeof(str_lines[3]));
}
}