Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: make GMT timestamps explicit for clarity #8694

Merged
merged 1 commit into from Apr 25, 2023

Conversation

moneromooo-monero
Copy link
Collaborator

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.

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.
@jeffro256
Copy link
Contributor

Since these timestamps are supposed to be be human readable, I think it would be more appropriate to end the timestamp with UTC or GMT spelled out versus Z b/c IMO it is more readable.

@moneromooo-monero
Copy link
Collaborator Author

It's longer though. Opinions ? I'll change it to whatever consensus wants.

@moneromooo-monero
Copy link
Collaborator Author

(within sane options)

@selsta
Copy link
Collaborator

selsta commented Jan 4, 2023

From what I have seen adding a Z suffix seems to be common, see for example: https://en.wikipedia.org/wiki/ISO_8601

@jeffro256
Copy link
Contributor

Yeah the Z suffix is standard, I just personally like the spelled out timezone better, but I'm fine with either.

@selsta
Copy link
Collaborator

selsta commented Apr 5, 2023

I'd like to merge this with the Z, if people find it confusing we can still change it. Just adding UTC or GMT to all log messages feels a bit redundant.

@jeffro256
Copy link
Contributor

I'm fine with that

@luigi1111 luigi1111 merged commit af88341 into monero-project:master Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants