TIL that there is a Y10K problem that will affect web apps, but never fear, MDN is ready to help you through it!
@lindsaykwardell what on earth?? I get the toIsoString part, but not at all the substring in there??
@thisismissem it's referenced higher in the doc, the problem is that including the time zone isn't supported for `datetime-local` inputs so they're cutting off the ISO datetime string at the "z".
"...the Date.toISOString() method returns the date/time in UTC with the suffix "Z" denoting that timezone; removing the "Z" would provide a value in the format expected by a datetime-local input."
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#value
@lindsaykwardell oh my.. that sounds like such a gap in the element spec that should be filled because timezones are SUPER important for parsing dates
Skipping the timezone can lead to very big value differences