Commit | Line | Data |
dda9af55 |
1 | package DBICTest::Schema::EventTZ; |
2 | |
3 | use strict; |
4 | use warnings; |
4a233f30 |
5 | |
660cf1be |
6 | use base qw/DBICTest::BaseResult/; |
dda9af55 |
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 }, |
40f75181 |
14 | starts_at => { data_type => 'datetime', timezone => "America/Chicago", locale => 'de_DE', datetime_undef_if_invalid => 1 }, |
92ed0695 |
15 | created_on => { data_type => 'timestamp', timezone => "America/Chicago", floating_tz_ok => 1 }, |
dda9af55 |
16 | ); |
17 | |
18 | __PACKAGE__->set_primary_key('id'); |
19 | |
40f75181 |
20 | sub _datetime_parser { |
21 | require DateTime::Format::MySQL; |
22 | DateTime::Format::MySQL->new(); |
23 | } |
24 | |
dda9af55 |
25 | 1; |