using Time.zone.parse instead of just Time.parse

pull/1186/head
Dennis Schmidt 12 years ago
parent 958f58a4f2
commit 3ad058699a
  1. 2
      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

Loading…
Cancel
Save