|
|
|
|
|
by thermin
1112 days ago
|
|
I absolutely agree, but timestampz as a column type is of little help here, because no actual timezone info is being persisted, ever. > I think best practice is to have PostgreSQL run in UTC and always store a time zone, that way you're always aware of time zone info and aren't restricted in the future. |
|
- you're time zone aware but you have to deal with time zones
- you're time zone naive but you can't do anything you need time zones for, like converting between time zones or using time zones (and DST) in time zone math
I think the recommendation is "figure out how to get time zone info and store it, otherwise you foreclose time zone functionality and managing DST", but yeah up to you if you're willing to accept that risk.