Stored Timestamp Is A Local Wall Clock

A timestamp column written through an ORM type converter can hold the local wall clock encoded as if it were UTC — an exact round trip that is only correct through the converter, and the converter is chosen by the field's TARGET TYPE, so declaring a projection field as a raw number silently opts out and applies the offset a second time. Covers why every total still adds up, why the error is exactly zero on some machines, and why the fix is asking for the type the converter understands rather than picking a time zone. Use when an hour-of-day or day-of-week breakdown is shifted by your own offset while every count and sum is right, when a chart says people are most active at 3am, or before typing a stored time column as a number in a hand-written projection.

maxrave-dev 084776d 8.0 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/stored-timestamp-is-a-local-wall-clock commit 084776d913

Frequently asked questions

npx skillmds@latest add maxrave-dev/stored-timestamp-is-a-local-wall-clock