Converted to use Rails Time.zone only to honor app time zone

This commit is contained in:
Priit Tark 2015-04-06 13:47:18 +03:00
parent a42136268f
commit e1041da50f
16 changed files with 34 additions and 31 deletions

View file

@ -29,7 +29,7 @@ class Certificate < ActiveRecord::Base
@cached_status = SIGNED
if parsed_crt.not_before > Time.now.utc && parsed_crt.not_after < Time.now.utc
if parsed_crt.not_before > Time.zone.now.utc && parsed_crt.not_after < Time.zone.now.utc
@cached_status = EXPIRED
end