[Dbix-class] DateTime Inflation
neil.lunn
neil at mylunn.id.au
Wed Oct 17 13:34:26 GMT 2012
I have a legacy database that has Date type data in the local timezone
rather than UTC. As such I have these statements in my class definitions:
"creation_date",
{
data_type => "DATE",
timezone => 'America/Montreal',
locale => 'en_US',
default_value => undef,
is_nullable => 1,
size => 19,
},
While this works for DateTime inflation, it would be nicer :) to not
have the timezone information declared in each column. Or more
practically, I don't like this being hardcoded and would rather pick up
from the current timezone or config.
Anyone have any better approaches? Ideas?
More information about the DBIx-Class
mailing list