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

feat: Use RFC 3339, more lax datetime parsing #122

Merged
merged 2 commits into from
Apr 4, 2024
Merged

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Apr 4, 2024

This PR is a necessary change to accommodate for the new server-side datetime serialisation — current strict ISO 8601 format couldn't process some of Pydantic's output.

@khvn26 khvn26 requested review from a team and novakzaballa and removed request for a team April 4, 2024 02:45
@khvn26 khvn26 force-pushed the feat/use-rfc3339 branch from 09acc07 to c4a719d Compare April 4, 2024 02:54
@khvn26 khvn26 changed the title feat: Use RFC 3339 feat: Use RFC 3339, more lax datetime parsing Apr 4, 2024
@khvn26 khvn26 force-pushed the feat/use-rfc3339 branch from c4a719d to cbc6aec Compare April 4, 2024 02:55

const iso8601 = "2006-01-02T15:04:05.999999"
"github.com/nav-inc/datetime"
Copy link
Contributor

Choose a reason for hiding this comment

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

Erk, this library does not look very well supported! It's not been touched in 3 years. I appreciate that it's probably not doing a lot, but have we searched for alternatives, or do we have evidence that this lib is widely used?

Copy link
Member Author

@khvn26 khvn26 Apr 4, 2024

Choose a reason for hiding this comment

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

Switched to github.com/itlightning/dateparse.

@khvn26 khvn26 force-pushed the feat/use-rfc3339 branch from cbc6aec to bb4a658 Compare April 4, 2024 12:26
@khvn26 khvn26 requested a review from matthewelwell April 4, 2024 12:29
@khvn26 khvn26 force-pushed the feat/use-rfc3339 branch 3 times, most recently from b12e415 to 3d302d7 Compare April 4, 2024 14:21
@khvn26 khvn26 force-pushed the feat/use-rfc3339 branch from 3d302d7 to daf17a2 Compare April 4, 2024 14:27
@khvn26 khvn26 merged commit 569276f into main Apr 4, 2024
3 checks passed
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