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

Use stricter RFC3339 time #4384

Merged
merged 1 commit into from
Dec 2, 2021
Merged

Use stricter RFC3339 time #4384

merged 1 commit into from
Dec 2, 2021

Conversation

nathaniel-may
Copy link
Contributor

@nathaniel-may nathaniel-may commented Dec 1, 2021

Description

RFC3339 is a subset† in the umbrella of ISO8601. This change makes sure all our timestamps are in UTC and are denoted with the military indicator Z.

example timestamp: 2021-12-01T21:33:53.239614Z
format string: '%Y-%m-%dT%H:%M:%S.%fZ'

† It's not actually a subset even though it's generally stricter. There are some exceptions, but I've chosen to make sure our time stamps are both valid RFC3339 and ISO8601 for maximum compatibility. Specifically, the T delimiter is allowed to be a space in RFC3339 but not in other ISO8601 standards so this chooses to continue to use T.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

@nathaniel-may nathaniel-may merged commit eeb490e into main Dec 2, 2021
@nathaniel-may nathaniel-may deleted the nate/use-rfc3339-time branch December 2, 2021 14:44
leahwicz pushed a commit that referenced this pull request Dec 2, 2021
leahwicz added a commit that referenced this pull request Dec 2, 2021
Co-authored-by: Nathaniel May <nathaniel.may@fishtownanalytics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants