frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

British Columbia, Time Zones, and Postgres

https://www.crunchydata.com/blog/british-columbia-and-time-zone-changes
54•sprawl_•2h ago

Comments

acalvino4•58m ago
Great post! I've thought about this issue a bit, and this is my take at solving it at the db level: https://github.com/acalvino4/pg_temporal

Once I decide on the best way to publish releases and cleanup the docs, I'll put out a ShowHN post, but the current version seems to be working for the basic use cases, and people are welcome to try it out if you don't mind a the work of cloning the repo and running the relevant commands!

jedberg•24m ago
I would contend that you shouldn't store anything but current unix timestamps in UTC in your database. If you must store time in some other way, then the two column method in the post will work, but leave it up to your software library to do it.

I prefer to leave all the time conversions to software, wherein you only use battle tested libraries, and never do it by hand.

Timezones are just too fraught with peril to try and do it on your own.

Edit: changed some words to make clearer what I was saying.

merb•22m ago
In that case only storing utc did not work when you created a date in the future before you updated tzdata
jedberg•6m ago
I edited my comment to make it clearer. I meant you should only directly store current timestamps, anything else you should leave up to a library to store as it sees fit.
ppchain•12m ago
The issue described in the post is an example of when you cannot just rely on Unix timestamps. Specifically it comes down to which date is authoritative.

A appointment with your dentist at 2pm Pacific Time in December 2026 has changed Unix timestamps in British Columbia. The dentist doesn't care about the Unix timestamp, she cares about the wall clock local time when you arrive for the appointment.

jedberg•7m ago
I edited my comment to make it clearer. I meant you should only directly store current timestamps, anything else you should leave up to a library to store as it sees fit.

Steam Machine launches today

https://store.steampowered.com/news/group/45479024/view/685257114654870245
867•theschwa•4h ago•749 comments

British Columbia, Time Zones, and Postgres

https://www.crunchydata.com/blog/british-columbia-and-time-zone-changes
55•sprawl_•2h ago•6 comments

Canyon HUD helmet for road riding

https://media-centre.canyon.com/en-INT/266866-new-canyon-heads-up-display-helmet-could-be-a-safet...
39•zh3•2d ago•26 comments

Optocam Zero: a Pi Zero based digital camera made using off the shelf components

https://github.com/dorukkumkumoglu/optocamzero
37•iamnothere•2h ago•3 comments

My Mathematical Regression

https://blog.dahl.dev/posts/my-mathematical-regression/
138•aleda145•3d ago•44 comments

Deno Desktop

https://docs.deno.com/runtime/desktop/
976•GeneralMaximus•15h ago•362 comments

Kyber (YC W23) Is Hiring a Head of Engineering

https://www.ycombinator.com/companies/kyber/jobs/FGmI8mx-head-of-engineering
1•asontha•33m ago

Japanese symbols that speak without words

https://arun.is/blog/japan-symbols/
31•msephton•2h ago•6 comments

Moebius: 0.2B image inpainting model with 10B-level performance

https://hustvl.github.io/Moebius/
184•DSemba•7h ago•54 comments

Show HN: Oak – Git alternative designed for agents

https://oak.space/oak/oak
112•zdgeier•5h ago•115 comments

Flock-Powered Police Chiefs Stalking Women Shows Why Warrants Are Needed

https://ipvm.com/reports/police-chiefs-track
124•jhonovich•2h ago•16 comments

Codex logging bug may write TBs to local SSDs

https://github.com/openai/codex/issues/28224
432•vantareed•14h ago•236 comments

Linux and Secure Boot certificate expiration (2025)

https://lwn.net/Articles/1029767/
69•weaksauce•3h ago•35 comments

Nintendo Wii U games running from a 1980's Bernoulli disk [video]

https://www.youtube.com/watch?v=8GZDOpV2OXk
76•zdw•1d ago•28 comments

Canada is looking to build up to 10 new nuclear reactors over the next 15 years

https://www.cbc.ca/news/politics/federal-nuclear-strategy-9.7244509
106•geox•2h ago•29 comments

GLM 5.2 vs. Opus

https://techstackups.com/comparisons/glm-5.2-vs-opus/
451•ritzaco•14h ago•307 comments

Prompt Injection as Role Confusion

https://role-confusion.github.io
116•x312•5h ago•60 comments

Pledging another $400k to the Zig software foundation

https://mitchellh.com/writing/zig-donation-2026
665•tosh•7h ago•219 comments

Blogger defeats photographer's copyright claim

https://blog.ericgoldman.org/archives/2026/06/blogger-defeats-photographers-copyright-claim-sokol...
71•speckx•4h ago•42 comments

Finding the Best Dog Treat with Statistics

https://www.wespiser.com/posts/2026-06-19-best-dog-treat.html
53•wespiser_2018•3h ago•10 comments

Walt Disney Company is the most successful at monetizing human nostalgia [audio]

https://www.acquired.fm/episodes/the-walt-disney-company
34•speckx•1h ago•17 comments

Die analysis of the 8087 math coprocessor's fast bit shifter (2020)

https://www.righto.com/2020/05/die-analysis-of-8087-math-coprocessors.html
66•Jimmc414•7h ago•13 comments

The text in Claude Code’s “Extended Thinking” output

https://patrickmccanna.net/the-text-in-claude-codes-extended-thinking-output-is-not-authentic/
237•0o_MrPatrick_o0•7h ago•172 comments

DisplayMate

https://www.displaymate.com/
63•skibz•4h ago•20 comments

Memory crisis is getting so bad that even retro RAM prices are going to the Moon

https://www.theregister.com/personal-tech/2026/06/22/the-memory-crisis-is-getting-so-bad-that-eve...
49•speckx•2h ago•8 comments

Jobs and Software Is Fucked

https://urflow.bearblog.dev/jobs-and-software-is-fucked/
207•speckx•1h ago•169 comments

Help I accidentally a wigglegram

https://lmao.center/blog/wiggle-accidents/
458•gregsadetsky•2d ago•117 comments

Show HN: Got sick of ads, so I made my own logic puzzle site

https://puzzlelair.com/
103•HaxleRose•9h ago•81 comments

Chevron signs 20-year power agreement with Microsoft for West Texas data center

https://www.chevron.com/newsroom/2026/q2/chevron-signs-20-year-power-agreement-with-microsoft-for...
93•cdrnsf•7h ago•94 comments

Mexican government unveils a prototype for a new homegrown, ultra-affordable EV

https://gizmodo.com/mexico-just-showed-off-a-new-extremely-cheap-government-backed-ev-2000769080
157•speckx•4h ago•129 comments