DEV: Replace Time.new with Time.now (#9142)

(or `Time.zone.now`)
This commit is contained in:
Jarek Radosz
2020-03-09 17:37:49 +01:00
committed by GitHub
parent fff0e0980d
commit 85e03a7f68
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -714,7 +714,7 @@ class Post < ActiveRecord::Base
self.cooked = cook(raw, topic_id: topic_id)
end
self.baked_at = Time.new
self.baked_at = Time.zone.now
self.baked_version = BAKED_VERSION
end