Commit | Line | Data |
dda9af55 |
1 | package DBICTest::Schema::EventTZ; |
2 | |
3 | use strict; |
4 | use warnings; |
660cf1be |
5 | use base qw/DBICTest::BaseResult/; |
dda9af55 |
6 | |
7 | __PACKAGE__->load_components(qw/InflateColumn::DateTime/); |
8 | |
9 | __PACKAGE__->table('event'); |
10 | |
11 | __PACKAGE__->add_columns( |
12 | id => { data_type => 'integer', is_auto_increment => 1 }, |
40f75181 |
13 | starts_at => { data_type => 'datetime', timezone => "America/Chicago", locale => 'de_DE', datetime_undef_if_invalid => 1 }, |
92ed0695 |
14 | created_on => { data_type => 'timestamp', timezone => "America/Chicago", floating_tz_ok => 1 }, |
dda9af55 |
15 | ); |
16 | |
17 | __PACKAGE__->set_primary_key('id'); |
18 | |
40f75181 |
19 | sub _datetime_parser { |
20 | require DateTime::Format::MySQL; |
21 | DateTime::Format::MySQL->new(); |
22 | } |
23 | |
dda9af55 |
24 | 1; |