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

SIP-28: Omitted timezone default to non-ambiguous UTC #152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

legobeat
Copy link

@legobeat legobeat commented Oct 15, 2024

Having the timezone be ambiguous and open to interpretation is not ideal, IMO. Localtime can also be ambiguous. Hence I propose that when timezone information is not provided, the default is changed from localtime to UTC, and switching a SHALL to MUST.

@legobeat legobeat marked this pull request as ready for review October 15, 2024 22:46
@legobeat legobeat requested review from Montoya, ziad-saab and a team as code owners October 15, 2024 22:46
Copy link
Contributor

@hmalik88 hmalik88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think I agree here. We should treat omitted timezone as UTC and all together not require the Z identifier. Quoting the wiki: "While it may be safe to assume local time when communicating in the same time zone, it is ambiguous when used in communicating across different time zones"

@legobeat
Copy link
Author

Something to consider would be to make the timezone required - this would reduce the likelihood of bugs arising due to incorrect implementations naively using (non-UTC) defaults in some library other than UTC, at the cost of making the Z required for UTC.

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.

2 participants