1 package DBICTest::Schema::EventTZPg;
5 use base qw/DBICTest::BaseResult/;
7 __PACKAGE__->load_components(qw/InflateColumn::DateTime/);
9 __PACKAGE__->table('event');
11 __PACKAGE__->add_columns(
12 id => { data_type => 'integer', is_auto_increment => 1 },
13 starts_at => { data_type => 'datetime', timezone => "America/Chicago", locale => 'de_DE' },
14 created_on => { data_type => 'timestamp with time zone', timezone => "America/Chicago" },
15 ts_without_tz => { data_type => 'timestamp without time zone' },
18 __PACKAGE__->set_primary_key('id');
20 sub _datetime_parser {
21 require DateTime::Format::Pg;
22 DateTime::Format::Pg->new();
25 # this is for a reentrancy test, the duplication from above is intentional
26 __PACKAGE__->add_columns(
27 ts_without_tz => { data_type => 'timestamp without time zone', inflate_datetime => 1 },