Well actually I want to relate it to the timezone of the current user or if that is not set in the user preferences, the browser time.
On Sat, 2010-02-13 at 23:09 +0200, Octavian Rasnita wrote: > From: "Kiffin Gish" <kiffin.g...@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... > }); > > Octavian > > > _______________________________________________ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ -- Kiffin Gish <kiffin.g...@planet.nl> Gouda, The Netherlands _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/