Skip to content

CAT 017

unurgunite edited this page Jul 11, 2026 · 3 revisions

CAT-017 — Time.local → Time.utc

Severity: hintConfidence: highAuto-fix:

Tip

This rule supports auto-fix via --fix

Description

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)

Benchmark

Note

See bench results at bench/cat-017/

Clone this wiki locally