views:

14

answers:

1

Maximum(:created_at) does not give the timestamp in local time format but in UTC.

I am using Rails 2.3.8

Is there another way to get the latest created_at in local time?

+2  A: 

You can use the getlocal method of the Time class, to obtain the local time from an UTC time.

Alberto
Works great! Tnx!
huug