Sheldan@programming.dev to Programming@programming.dev · 3 months agonew Date("wtf")jsdate.wtfexternal-linkmessage-square21fedilinkarrow-up112arrow-down10
arrow-up112arrow-down1external-linknew Date("wtf")jsdate.wtfSheldan@programming.dev to Programming@programming.dev · 3 months agomessage-square21fedilink
minus-squareTanoh@lemmy.worldlinkfedilinkarrow-up0·3 months agoThere is a reason almost everyone use some Date lib, like Luxon and not the built in. And well, having a horrible built in lib that they can’t change due to legacy code breaking is nothing really new or unique to JS.
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up1·3 months agoThe built-in lib is fine for basic stuff unless you do some crazy shit like expecting "2" to parse as a valid date.
There is a reason almost everyone use some Date lib, like Luxon and not the built in. And well, having a horrible built in lib that they can’t change due to legacy code breaking is nothing really new or unique to JS.
The built-in lib is fine for basic stuff unless you do some crazy shit like expecting
"2"
to parse as a valid date.