Possible to set locale in IC::DateTime extra => {} config
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / EventTZ.pm
CommitLineData
dda9af55 1package DBICTest::Schema::EventTZ;
2
3use strict;
4use warnings;
5use base qw/DBIx::Class::Core/;
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 },
8d689133 13 starts_at => { data_type => 'datetime', extra => { timezone => "America/Chicago", locale => 'de_DE' } },
47cd9169 14 created_on => { data_type => 'timestamp', extra => { timezone => "America/Chicago", floating_tz_ok => 1 } },
dda9af55 15);
16
17__PACKAGE__->set_primary_key('id');
18
191;