What Changes When You Upgrade from PostgreSQL 18 to 19 (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (3)
This may be important in many cases: for example antifraud where you want to store also what was literally on the user’s clock (including timezone) and show it later in reports and what have you
Replies (4)
However the Postgres (and others) work-around is simply to add a LocalTimeZone field where necessary.
Yeah, it's not as convenient, but it's a simple, effective, work-around.
For me, this isn't the killer-app distinction that suggests choosing MSSQL over Postgres.
Replies (1)
It is not. A static offset is largely equivalent to a utc timestamp, and thus useless for any consideration of future event.
If you’re concerned about the limited historical and auditing value, it’s not exactly difficult to just tack that information on in a second column, or create a custom type which you can even call datetimeoffset but hanging the entire thing on that edge case is nonsense.
Hell, if you’re concerned about auditing events or fraud control you want a ton more data than just a timezone offset advertised by the client, and storing an entire timestamp just to keep that datum around is an unnecessary waste.
Replies (2)
A static offset however is not equivalent to storing as utc. Storing the local offset is objectively more information than not.
But yes, the workaround is simple.
Replies (1)
From a datetime manipulation perspective it makes no difference, both are instants and nothing more. Hence my very specific use of “largely equivalent” and further qualification, rather than calling them identical.
A static offset is information in the same sense storing a traceability report for every number is information: it’s metadata, and in most cases it’s closer to hoarding than anything useful.
Continue this thread (1 replies) →
Replies (1)
Your country abolishes DST? Good luck trying to fix that mess...
Replies (1)
You would not need to convert that time to some other time zone and what have you 3 years from now.
For other stuff, of course, utc is enough.
However it is just huge amount of cope trying to defend that you cannot store what ms sql allows you to.
Replies (1)
Replies (1)
Continue this thread (1 replies) →
Replies (2)
Replies (3)
Replies (1)
Replies (1)
Time zones can change relative to UTC, e.g. the country Georgia in Europe.
Daylight savings time (DST) can affect the offset from UTC as well and can vary based on location and can vary across UTC for the same location.
Replies (1)
Yeah, but if you have the UTC time, you can calculate any local time at any point, using a tz lookup table of changes (since changes are not deterministic), right?