News for hackers. Stuff that matters.
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS... by sph on Wednesday May 28, 2025 @07:19AM (#44114768)
Pro tip #2: never ever rely on automatic parsing of dates. It's a lie and will corrupt your data.

Either use dedicated "from_iso8601" functions, or manually specify the format of the input string ("%Y%m%dT%H%M%SZ")

Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS... by j1elo on Thursday May 29, 2025 @03:54AM (#44123932)
The list of things that devs should "never ever" do grows by the day... turns out most things, even the simplest of things, even sometimes the most apparently trivial things (like naming of people, too) are in reality almost always much more complex and difficult to get right on the first go than expected.

But then discussion ensues about how programmers these days add libraries as dependencies for almost everything! :-)

I guess at some point a middle ground must be found.