1 package DBICTest::Schema::EventTZDeprecated;
6 use base qw/DBICTest::BaseResult/;
8 __PACKAGE__->load_components(qw/InflateColumn::DateTime/);
10 __PACKAGE__->table('event');
12 __PACKAGE__->add_columns(
13 id => { data_type => 'integer', is_auto_increment => 1 },
14 starts_at => { data_type => 'datetime', extra => { timezone => "America/Chicago", locale => 'de_DE' } },
15 created_on => { data_type => 'timestamp', extra => { timezone => "America/Chicago", floating_tz_ok => 1 } },
18 __PACKAGE__->set_primary_key('id');
20 sub _datetime_parser {
21 require DateTime::Format::MySQL;
22 DateTime::Format::MySQL->new();