[Catalyst] datetime formatting ...

Octavian Rasnita orasnita at gmail.com
Sat Feb 13 21:09:39 GMT 2010

From: "Kiffin Gish" <kiffin.gish at planet.nl>
> That worked, thanks. Only weird thing now is that the time is one hour
> behind.

Use something like:

->last_modified->set_time_zone('America/Chicago')->strftime('%F %T')

Or add the time_zone parameter as an option in your Result class (after "do 
not modify this or anything above") , using something like:

__PACKAGE__->add_column("last_modified", {
data_type => "DATETIME",
default_value => undef,
is_nullable => 1,
size => 19,
time_zone => 'America/Chicago',
locale => 'en', # If you want...


More information about the Catalyst mailing list