Skip to content
GitHub Actions / rubocop failed Dec 6, 2024 in 1s

reviewdog [rubocop] report

reported by reviewdog 🐶

Findings (1)

app/services/sessions/clear_old_sessions_service.rb|35 col 32| Do not use Date.today without zone. Use Time.zone.today instead.

Filtered Findings (0)

Annotations

Check notice on line 35 in app/services/sessions/clear_old_sessions_service.rb

See this annotation in the file changed.

@github-actions github-actions / rubocop

[rubocop] app/services/sessions/clear_old_sessions_service.rb#L35 <Rails/Date>

Do not use `Date.today` without zone. Use `Time.zone.today` instead.
Raw output
app/services/sessions/clear_old_sessions_service.rb:35:32: C: Rails/Date: Do not use `Date.today` without zone. Use `Time.zone.today` instead.