projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix 'timestamp with time zone' columns for IC::DT inflation
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
InflateColumn
/
DateTime.pm
diff --git
a/lib/DBIx/Class/InflateColumn/DateTime.pm
b/lib/DBIx/Class/InflateColumn/DateTime.pm
index
5b1b313
..
54e66f5
100644
(file)
--- a/
lib/DBIx/Class/InflateColumn/DateTime.pm
+++ b/
lib/DBIx/Class/InflateColumn/DateTime.pm
@@
-107,6
+107,10
@@
sub register_column {
unless ($type) {
$type = lc($info->{data_type});
+ if ($type eq "timestamp with time zone" || $type eq "timestamptz") {
+ $type = "timestamp";
+ $info->{_ic_dt_method} ||= "timestamp_with_timezone";
+ }
}
my $timezone;