Login
From:
Arie Bovenberg
(Uncensored)
subscribe
The curious case of Pydantic and the 1970s timestamps | Arie Bovenberg
https://dev.arie.bovenberg.net/blog/pydantic-timestamps/
links
backlinks
Roast topics
Find topics
Find it!
When parsing Unix timestamps, Pydantic guesses whether to interpret them in seconds or milliseconds. While this is certainly convenient and works most of the time, it can drastically (and silently) distort timestamps from a few decades ago.