From df981d8146d292bf07ba6db0781188e1bcf64984 Mon Sep 17 00:00:00 2001 From: Eugen Konkov Date: Wed, 28 Oct 2020 18:48:09 +0200 Subject: [PATCH] DateTime::Format::* does not have fromat_timestamp_without_timezone method --- lib/DBIx/Class/InflateColumn/DateTime.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DBIx/Class/InflateColumn/DateTime.pm b/lib/DBIx/Class/InflateColumn/DateTime.pm index 7abf5acfe..2ab1161e5 100644 --- a/lib/DBIx/Class/InflateColumn/DateTime.pm +++ b/lib/DBIx/Class/InflateColumn/DateTime.pm @@ -132,10 +132,10 @@ sub register_column { # _ic_dt_method will follow whatever the registration requests # thus = instead of ||= if ($data_type eq 'timestamp with time zone' || $data_type eq 'timestamptz') { - $info->{_ic_dt_method} = 'timestamp_with_timezone'; + $info->{_ic_dt_method} = 'timestamp_with_time_zone'; } elsif ($data_type eq 'timestamp without time zone') { - $info->{_ic_dt_method} = 'timestamp_without_timezone'; + $info->{_ic_dt_method} = 'timestamp_without_time_zone'; } elsif ($data_type eq 'smalldatetime') { $info->{_ic_dt_method} = 'smalldatetime';