@@ -46,7 +46,7 @@ impl FromSql for DateTime<UTC> {
4646 Ok ( DateTime :: from_utc ( naive, UTC ) )
4747 }
4848
49- accepts ! ( Type :: TimestampTZ ) ;
49+ accepts ! ( Type :: Timestamptz ) ;
5050}
5151
5252impl ToSql for DateTime < UTC > {
@@ -58,7 +58,7 @@ impl ToSql for DateTime<UTC> {
5858 self . naive_utc ( ) . to_sql ( type_, w, info)
5959 }
6060
61- accepts ! ( Type :: TimestampTZ ) ;
61+ accepts ! ( Type :: Timestamptz ) ;
6262 to_sql_checked ! ( ) ;
6363}
6464
@@ -68,7 +68,7 @@ impl FromSql for DateTime<Local> {
6868 Ok ( utc. with_timezone ( & Local ) )
6969 }
7070
71- accepts ! ( Type :: TimestampTZ ) ;
71+ accepts ! ( Type :: Timestamptz ) ;
7272}
7373
7474impl ToSql for DateTime < Local > {
@@ -80,7 +80,7 @@ impl ToSql for DateTime<Local> {
8080 self . with_timezone ( & UTC ) . to_sql ( type_, w, info)
8181 }
8282
83- accepts ! ( Type :: TimestampTZ ) ;
83+ accepts ! ( Type :: Timestamptz ) ;
8484 to_sql_checked ! ( ) ;
8585}
8686
@@ -93,7 +93,7 @@ impl FromSql for DateTime<FixedOffset> {
9393 Ok ( utc. with_timezone ( & FixedOffset :: east ( 0 ) ) )
9494 }
9595
96- accepts ! ( Type :: TimestampTZ ) ;
96+ accepts ! ( Type :: Timestamptz ) ;
9797}
9898
9999impl ToSql for DateTime < FixedOffset > {
@@ -105,7 +105,7 @@ impl ToSql for DateTime<FixedOffset> {
105105 self . with_timezone ( & UTC ) . to_sql ( type_, w, info)
106106 }
107107
108- accepts ! ( Type :: TimestampTZ ) ;
108+ accepts ! ( Type :: Timestamptz ) ;
109109 to_sql_checked ! ( ) ;
110110}
111111
0 commit comments