Harmonize time zone spelling in InflateColumn::DateTime
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / EventTZDeprecated.pm
1 package DBICTest::Schema::EventTZDeprecated;
2
3 use strict;
4 use warnings;
5
6 use 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 },
14   starts_at => { data_type => 'datetime', extra => { time_zone => "America/Chicago", locale => 'de_DE' } },
15
16   # DO NOT change 'timezone' - there to test the legacy syntax
17   created_on => { data_type => 'timestamp', extra => { timezone => "America/Chicago", floating_tz_ok => 1 } },
18 );
19
20 __PACKAGE__->set_primary_key('id');
21
22 sub _datetime_parser {
23   require DateTime::Format::MySQL;
24   DateTime::Format::MySQL->new();
25 }
26
27
28 1;