From 3ad058699aa5f0498605a0c9d51e898ecae48efd Mon Sep 17 00:00:00 2001 From: Dennis Schmidt Date: Wed, 15 Aug 2012 14:00:58 +0200 Subject: [PATCH] using Time.zone.parse instead of just Time.parse --- app/models/wiki_page.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index e9469b0591..c3d5b29806 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -129,7 +129,7 @@ class WikiPage < ActiveRecord::Base if time = read_attribute(:updated_on) # content updated_on was eager loaded with the page unless time.is_a? Time - time = Time.parse(time) rescue nil + time = Time.zone.parse(time) rescue nil end @updated_on = time else