British Columbia, Time Zones, and Postgres
dev_tools
British Columbia's switch to permanent daylight saving time is creating a database headache for PostgreSQL users. If you're using the standard timestamptz column type to store future appointments and your tzdata has already updated, those times could shift by an hour when retrieved. According to Crunchy Data, the solution is a dual-column pattern: store the local time and timezone name separately, with a calculated UTC column. This preserves the user's original intent even when timezone rules change. If your data is already affected, there's a migration path—but the sooner you act, the easier it gets.
Source: https://www.crunchydata.com/blog/british-columbia-and-tim...
Listen to this story
Hear this and more stories in a personalized audio briefing.
Open The Chonkerton