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

proposal: log: change standard date format to ISO 8601 #58614

Closed
Corbie-42 opened this issue Feb 21, 2023 · 3 comments
Closed

proposal: log: change standard date format to ISO 8601 #58614

Corbie-42 opened this issue Feb 21, 2023 · 3 comments

Comments

@Corbie-42
Copy link

If you write the 2009/04/03 - is it the fourth day of March or the third of April?
The log package uses YYYY/MM/DD - so the order is the one it should be, but the separators make it look like it could be different.

The ISO 8601 uses dashes - as separators, so most developers, libraries and tools see 2009-04-03 and recognize the ISO format.
Why does Go differ from the international standard?
There is no logical reason for that, so it should be changed.

@gopherbot gopherbot added this to the Proposal milestone Feb 21, 2023
@seankhliao
Copy link
Member

Duplicate of #34416

@seankhliao seankhliao marked this as a duplicate of #34416 Feb 21, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2023
@Corbie-42
Copy link
Author

I have to disagree with calling this a duplicate of #34416. I don't think we need a flag to optionally set the date format to ISO, I think we need to make ISO the default. No flag needed.

@seankhliao
Copy link
Member

Duplicate of #6095

@seankhliao seankhliao marked this as a duplicate of #6095 Feb 26, 2023
@golang golang locked and limited conversation to collaborators Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants