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

Add TryFromU64 trait for DateTime<FixedOffset>. #331

Merged
merged 1 commit into from Nov 23, 2021

Conversation

kev0960
Copy link
Contributor

@kev0960 kev0960 commented Nov 22, 2021

The timestamp column (with time zone) generates the field with chrono::DateTime<chrono::FixedOffset>.
Sadly, DeriveEntityModel macro fails because TryFromU64 is not implemented for this type.

I added the trivial implementation for chrono::DateTime<chrono::FixedOffset> since timestamp is not convertible to u64 anyway.

The timestamp column (with time zone) generates the field with `chrono::DateTime<chrono::FixedOffset>`.
Sadly, `DeriveEntityModel` macro fails because `TryFromU64` is not implemented for this type.

I added the trivial implementation for `chrono::DateTime<chrono::FixedOffset>`.
Copy link
Member

@billy1624 billy1624 left a comment

Choose a reason for hiding this comment

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

Thanks!! @kev0960

@kev0960
Copy link
Contributor Author

kev0960 commented Nov 22, 2021

Hi can someone merge this into main branch?

@billy1624 billy1624 linked an issue Nov 23, 2021 that may be closed by this pull request
@billy1624 billy1624 merged commit 2dea267 into SeaQL:master Nov 23, 2021
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.

Add TryFromU64 trait for DateTime<FixedOffset>
2 participants