warclight icon indicating copy to clipboard operation
warclight copied to clipboard

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

Open ruebot opened this issue 8 years ago • 0 comments

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

ruebot avatar Oct 18 '17 10:10 ruebot