Skip to content
This repository was 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

@ruebot

Description

@ruebot

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions