| 1 | package DBIO::MySQL::Test::EventTZ; | ||
| 2 | # ABSTRACT: Test result class for MySQL/MariaDB timezone-aware datetime inflation | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | our $VERSION = '0.900007'; | ||
| 8 | |||
| 9 | use base qw/DBIO::Test::BaseResult/; | ||
| 10 | |||
| 11 | __PACKAGE__->load_components(qw/InflateColumn::DateTime/); | ||
| 12 | |||
| 13 | __PACKAGE__->table('event'); | ||
| 14 | |||
| 15 | __PACKAGE__->add_columns( | ||
| 16 | id => { data_type => 'integer', is_auto_increment => 1 }, | ||
| 17 | |||
| 18 | starts_at => { data_type => 'date', locale => 'de_DE', timezone => 'America/Chicago', datetime_undef_if_invalid => 1 }, | ||
| 19 | |||
| 20 | created_on => { | ||
| 21 | data_type => 'datetime', | ||
| 22 | timezone => 'America/Chicago', | ||
| 23 | }, | ||
| 24 | ); | ||
| 25 | |||
| 26 | __PACKAGE__->set_primary_key('id'); | ||
| 27 | |||
| 28 | 1; | ||
| 29 | |||
| 30 | __END__ |