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

Datetime utc #241

Merged
merged 2 commits into from
Jan 16, 2022
Merged

Datetime utc #241

merged 2 commits into from
Jan 16, 2022

Conversation

tyt2y3
Copy link
Member

@tyt2y3 tyt2y3 commented Jan 16, 2022

No description provided.

charleschege and others added 2 commits January 16, 2022 22:19
#222)

* Support the use of chrono::DateTime<Utc> using the type alias DateTimeUtc

Add a test to ensure the DateTimeUtc is parsed and converted to SQL equivalent of TIMESTAMP

* Ensure DateTime formatting is consistent

* Implement `From` for Utc

Move FixedOffset to its own `From` implementation

Implement test for Utc

* Return a DateTime<Utc> instead of String

* Return timestamp as a String

* Add example documentation for DateTimeUtc
@tyt2y3 tyt2y3 merged commit f36f4aa into master Jan 16, 2022
@tyt2y3 tyt2y3 deleted the datetime-utc branch January 16, 2022 15:09
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