// Unless, of course, you separate the year, month, and date with hyphens.
// Then it gets the _day_ wrong.
console.log( new Date('2026-01-02') );
// Result: Date Thu Jan 01 2026 19:00:00 GMT-0500 (Eastern Standard Time)
In this example, the day is "wrong" because the constructor input is being interpreted as midnight UTC on January 2nd, and at that instantaneous point in time, it is 7pm on January 1st in Eastern Standard Time (which is the author's local time zone).What's actually happening here is a comedy of errors. JavaScript is interpreting that particular string format ("YYYY-MM-DD") as an ISO 8601 date-only form. ISO 8601 specifies that if no time zone designator is provided, the time is assumed to be in local time. The ES5 spec authors intended to match ISO 8601 behavior, but somehow accidentally changed this to 'The value of an absent time zone offset is “Z”' (UTC).
Years later, they had realized their mistakes, and attempted to correct it in ES2015. And you can probably predict what happened. When browsers shipped the correct behavior, they got too many reports about websites which were relying on the previous incorrect behavior. So it got completely rolled back, sacrificed to the altar of "web compatibility."
For more info, see the "Broken Parser" section towards the bottom of this article:
https://maggiepint.com/2017/04/11/fixing-javascript-date-web...
One can't fathom how weird JS Date can be.
But ligature is indeed still visible on Google search.
Smoothest, quietest, roomiest train I've ever been in. Even the aesthetics were calming, with nice wide windows.
No random stairs or narrow corridors, no garish yellow or red colours, no speakers or beeping doors yelling at top volume.
The first hit when I search is "SUVs accounted for 54% of new car sales in the EU in 2023" :(
> Our previous linting setup took 75 minutes to run, so we were fanning it out across 40+ workers in CI. By comparison, oxlint takes around 10 seconds to lint the same codebase on a single worker[…]
So it's in fact 18000 times faster on this embarrassingly parallel problem (but doing less for now).
Requiring the TS AST adds a massive overhead.
I have a phone mount on my roadbike handlecars - one of the Quadlock ones - does anybody know if the road vibrations from cycling can cause as much damage as the motorbike?
If anything...I would have thought a fairly stiff road bike would have more vibrations than a motorbike?