util: make GMT timestamps explicit for clarity

For privacy reasons, time functions use GMT, to avoid logs leaking
timezones. It'd make more sense to use localtime for wallet output
(which are not logged by default), but that adds inconsistencies
which can also be confusing. So add a Z suffix for now to make it
clear these are not local time.
This commit is contained in:
moneromooo-monero 2023-01-01 10:38:13 +00:00
parent 9367b432f6
commit d89e7a239d
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -1067,7 +1067,7 @@ std::string get_nix_version_display_string()
time_t tt = ts; time_t tt = ts;
struct tm tm; struct tm tm;
misc_utils::get_gmt_time(tt, tm); misc_utils::get_gmt_time(tt, tm);
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", &tm); strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%SZ", &tm);
return std::string(buffer); return std::string(buffer);
} }