aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2023-01-01 10:38:13 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2023-01-01 10:38:13 +0000
commitd89e7a239d047e8c5dd3a71f47b36df2bb602d49 (patch)
tree374d7d9d7ce0d85003b4e2adb72fde9836f8d8be /src
parentMerge pull request #8635 (diff)
downloadmonero-d89e7a239d047e8c5dd3a71f47b36df2bb602d49.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/common/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.cpp b/src/common/util.cpp
index f0de73a06..f6874e41e 100644
--- a/src/common/util.cpp
+++ b/src/common/util.cpp
@@ -1067,7 +1067,7 @@ std::string get_nix_version_display_string()
time_t tt = ts;
struct tm 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);
}