[Catalyst] Changing format of date field

Adam Witney awitney at sgul.ac.uk
Mon Jan 6 15:18:51 GMT 2014


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 YYYY-MM-DD format.

I can modify this to DD/MM/YYYY in my TT template with object.dmy('/'), 
but I would prefer to change the default DateTime stringification, 
however I am not quite sure where or how to do this?

Any ideas greatly appreciated.

Thanks

Adam



More information about the Catalyst mailing list