Skip to content

CAT 017

unurgunite edited this page Jul 11, 2026 · 3 revisions

CAT-017 — Time.local → Time.utc

Field Value
Severity hint
Confidence high
Auto-fix

Time.local → Time.utc — Prefer Time.utc for most operations to avoid local timezone overhead and ambiguity.

Bad code

Time.local(2024, 1, 1)

Good code

Time.utc(2024, 1, 1)

Clone this wiki locally