From 1815e3040514fe414c646fb4b771287758ecf9f5 Mon Sep 17 00:00:00 2001 From: Ari Seyhun Date: Sun, 12 Sep 2021 20:50:28 +0930 Subject: [PATCH] Add `DateTimeWithTimeZone` support for `DeriveEntityModel` --- sea-orm-macros/src/derives/entity_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-macros/src/derives/entity_model.rs b/sea-orm-macros/src/derives/entity_model.rs index 004970c5..bd6b332d 100644 --- a/sea-orm-macros/src/derives/entity_model.rs +++ b/sea-orm-macros/src/derives/entity_model.rs @@ -163,7 +163,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec) -> syn::Res "bool" => quote! { Boolean }, "NaiveDate" => quote! { Date }, "NaiveTime" => quote! { Time }, - "DateTime" | "NaiveDateTime" => quote! { DateTime }, + "DateTime" | "NaiveDateTime" | "DateTimeWithTimeZone" => quote! { DateTime }, "Uuid" => quote! { Uuid }, "Json" => quote! { Json }, "Decimal" => quote! { Decimal },