Skip to content

MG10 — Prefer timestamptz to timestamp

Group: Migration safety · Auto-fixable: yes

timestamp (without time zone) stores wall-clock values that ignore the session time zone, a frequent source of off-by-hours bugs. Use timestamptz, which stores an absolute instant.

bad: created_at timestamp
good: created_at timestamptz

Disable this rule in banshee.toml:

[lint]
exclude = ["MG10"]

Or silence one line with -- noqa: MG10. See Linting.