Hi Alan, nice write up, but what I find way more bothersome is that it's impossible to get a date without a time in JavaScript. For something as simple as a birthdate, a time (and timezone) is irrelevant, but can lead to misinterpretations when serialized. Sometimes this happens behind the scenes and you're a day off for reasons hidden in frameworks that convert to UTC before sending things over the wire.
Anyway, thanks for the overview. I'm moving to Luxon after reading this. I'm all for explicit over magic. Define what you support and be strict about it. I'd rather aid a customer in providing the input I need (writing a wrapper/post processor for their export tool for instance), then guessing what the customer meant.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Alan, nice write up, but what I find way more bothersome is that it's impossible to get a date without a time in JavaScript. For something as simple as a birthdate, a time (and timezone) is irrelevant, but can lead to misinterpretations when serialized. Sometimes this happens behind the scenes and you're a day off for reasons hidden in frameworks that convert to UTC before sending things over the wire.
Anyway, thanks for the overview. I'm moving to Luxon after reading this. I'm all for explicit over magic. Define what you support and be strict about it. I'd rather aid a customer in providing the input I need (writing a wrapper/post processor for their export tool for instance), then guessing what the customer meant.