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

Avoid strict RFC 3339 checks for time.Time #104

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Avoid strict RFC 3339 checks for time.Time #104

merged 1 commit into from
Dec 30, 2024

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented Dec 30, 2024

WARNING: This commit contains breaking changes.

Rename FormatTimeDurationAsNanosecond as FormatTimeWithLegacySemantics to cover a wider range of legacy behavior.

In particular, we avoid strict RFC 3339 checks under such a flag. Also, make calling of time.Time behavior mimic how error handling is usually done for other method calls.

WARNING: This commit contains breaking changes.

Rename FormatTimeDurationAsNanosecond as FormatTimeWithLegacySemantics
to cover a wider range of legacy behavior.

In particular, we avoid strict RFC 3339 checks under such a flag.
Also, make calling of time.Time behavior mimic how error
handling is usually done for other method calls.
@dsnet dsnet merged commit 884b1cb into master Dec 30, 2024
8 checks passed
@dsnet dsnet deleted the legacy-time branch December 30, 2024 20:57
@dsnet dsnet restored the legacy-time branch December 30, 2024 23:41
@dsnet dsnet deleted the legacy-time branch December 30, 2024 23:42
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