projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
don't use eval!
[dbsrgits/DBIx-Class-Historic.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;