Re: [Catalyst] Changing format of date field

2014-01-06 Thread Bill Moseley
On Mon, Jan 6, 2014 at 7:18 AM, Adam Witney wrote: > Hi, > > I have a date field in a DBIx::Class Result class using > InflateColumn::DateTime. When I pass this through a Catalyst/TT > application, the date is presented in -MM-DD format. > > I can modify this to DD/MM/ in my TT template w

Re: [Catalyst] Changing format of date field

2014-01-06 Thread Ian Docherty
DateTime has an option to change the default stringification with a 'formatter' option. Also DBIx::Class::InflateColumn::DateTime is a convenience method, you could choose to use the DBIx::Class::InflateColumn yourself and combine this with the DateTime formatter option to give you the result you

[Catalyst] Changing format of date field

2014-01-06 Thread Adam Witney
Hi, I have a date field in a DBIx::Class Result class using InflateColumn::DateTime. When I pass this through a Catalyst/TT application, the date is presented in -MM-DD format. I can modify this to DD/MM/ in my TT template with object.dmy('/'), but I would prefer to change the defaul