lucas.love
Home Blog TIL Heart

Projects

Zeit Kompressor Afterglow Pagi Futureland Where is Lucas? Vagabundo Macrowave Mr. Knipser

Experiments

Halt and Catch Fire Latency of Celestial Bodies Evil Fluid

Contact

RSS Futureland Mastodon Bluesky
TIL
How to Change the Business Model of an App Store App
2025-06-02
Track App Opens with Futureland
2024-10-05
How to Fix Issues with Apple's AppIntents Framework?
2023-04-18
Backup and Restore PostgreSQL Database
2023-01-26
Full-Text Search in Multiple Directories Using Grep
2023-01-25
Hot to Get the Index and Data Size of a Table In MySQL/MariaDB
2023-01-12
Hot to Get the Index and Data Size of a Table In PostgreSQL
2023-01-12
Add Keyboard Shortcuts to iPad App
2023-01-10
Creating SVG-Gradients
2022-12-27
How to Extract Date Components from Timestamps in PostgreSQL
2022-12-22
Debug Matrix Instances
2022-12-21
How to Generate UUIDs in PostgreSQL
2022-12-21
Center <text> in SVG
2022-12-20
Display `timestamptz` in Different Timezone in PostgreSQL
2022-12-20
Volume Levels of Everyday Sounds
2022-12-20
Animate SVG <path> with CSS
2022-12-19
Drawing Straight Lines with SVG-Path
2022-12-19
Display `timestamptz` in Different Timezone in PostgreSQL

Display `timestamptz` in Different Timezone in PostgreSQL

2022-12-20 loading views

There is an easy way to display/convert timestamptz fields to different timezones.

The short version: created_at AT TIME ZONE 'America/Toronto' AS local_time

The full version:

SELECT
    created_at AT TIME ZONE entries.timezone AS local_time
FROM
    entries