by sswu · 7y ago · 0 comments
How can we design datetime libraries to prevent these issues? Or at least make it so that error-prone behaviors must be very explicit?
Write your frontend in Java 8 and you have access to a full blown date/time library that handles all the edge cases and has been well thought out. Do it in JS and you got bupkis.
That doesn't sound like a datetime library design problem, it sounds like they totally neglected to use a datetime library at all.