[Radiant] created_at and updated_at timestamps wrong.
John W. Long
ng at johnwlong.com
Sat Aug 26 08:58:28 CDT 2006
Saint Berry wrote:
> I have just noticed that the updated_at and created_at timestamps are about
> 10 hours behind. At the moment I am running radiant locally, so if I
> updated
> a page at 11pm according to my computers time, updated_at will get a
> timestamp for the same day at 1pm.
>
> This does not effect the published_at timestamp, it is spot on.
created_at and updated_at are automagically updated by Rails. So they
are using whatever algorithm Rails uses to calculate the time. Published
at doesn't do anything special. It uses Time.now:
http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page.rb#L81
What would you suggest?
--
John Long
http://wiseheartdesign.com
More information about the Radiant
mailing list