Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

replay_link -- Rails/TimeZone: Do not use Time.parse.strftime without zone. #37

Open
ruebot opened this issue Oct 18, 2017 · 0 comments
Assignees
Labels

Comments

@ruebot
Copy link
Member

ruebot commented Oct 18, 2017

Currently we're ignoring this in Rubocop. We shouldn't.

Offenses:

app/models/concerns/warclight/solr_document.rb:12:32: C: Rails/TimeZone: Do not use Time.parse.strftime without zone. Use one of Time.zone.parse.strftime, Time.current, Time.parse.strftime.in_time_zone, Time.parse.strftime.utc, Time.parse.strftime.getlocal, Time.parse.strftime.iso8601, Time.parse.strftime.jisx0301, Time.parse.strftime.rfc3339, Time.parse.strftime.to_i, Time.parse.strftime.to_f instead.
      time_travel_time = (Time.parse(first(:crawl_date)).strftime time_travel_time_format).to_s
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant