Harmonize time zone spelling in InflateColumn::DateTime
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / EventTZPg.pm
CommitLineData
6c99a3ee 1package DBICTest::Schema::EventTZPg;
2
3use strict;
4use warnings;
4a233f30 5
6c99a3ee 6use base qw/DBICTest::BaseResult/;
7
8__PACKAGE__->load_components(qw/InflateColumn::DateTime/);
9
10__PACKAGE__->table('event');
11
12__PACKAGE__->add_columns(
13 id => { data_type => 'integer', is_auto_increment => 1 },
eef9b484 14 starts_at => { data_type => 'datetime', time_zone => "America/Chicago", locale => 'de_DE' },
15 created_on => { data_type => 'timestamp with time zone', time_zone => "America/Chicago" },
65b386df 16 ts_without_tz => { data_type => 'timestamp without time zone' },
6c99a3ee 17);
18
19__PACKAGE__->set_primary_key('id');
20
21sub _datetime_parser {
22 require DateTime::Format::Pg;
23 DateTime::Format::Pg->new();
24}
25
49bceca3 26# this is for a reentrancy test, the duplication from above is intentional
27__PACKAGE__->add_columns(
28 ts_without_tz => { data_type => 'timestamp without time zone', inflate_datetime => 1 },
29);
30
6c99a3ee 311;