Fix rubocop Rails/TimeZone warnings
This commit is contained in:
parent
304eb3b75c
commit
b5f06e06c1
48 changed files with 89 additions and 96 deletions
|
@ -10,7 +10,7 @@ module ChangesetsHelper
|
|||
end
|
||||
|
||||
def changeset_details(changeset)
|
||||
if changeset.closed_at > Time.now
|
||||
if changeset.closed_at > Time.now.utc
|
||||
action = :created
|
||||
time = time_ago_in_words(changeset.created_at, :scope => :"datetime.distance_in_words_ago")
|
||||
title = l(changeset.created_at)
|
||||
|
|
|
@ -8,7 +8,7 @@ module UserBlocksHelper
|
|||
if block.active?
|
||||
# if the block hasn't expired yet show the date, if the user just needs to login show that
|
||||
if block.needs_view?
|
||||
if block.ends_at > Time.now.getutc
|
||||
if block.ends_at > Time.now.utc
|
||||
t("user_blocks.helper.time_future_and_until_login_html", :time => friendly_date(block.ends_at))
|
||||
else
|
||||
t("user_blocks.helper.until_login")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue