Add TryFromU64 trait for DateTime<FixedOffset>.

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>`.
This commit is contained in:
Jaebum Lee 2021-11-21 23:36:13 -08:00
parent d952a3e42a
commit bc952b3787

View File

@ -544,3 +544,6 @@ try_from_u64_err!(Vec<u8>);
#[cfg(feature = "with-uuid")]
try_from_u64_err!(uuid::Uuid);
#[cfg(feature = "with-chrono")]
try_from_u64_err!(chrono::DateTime<chrono::FixedOffset>);