News for hackers. Stuff that matters.
Re:JavaScript's “new Date()” causing 90% of Alibaba's intern... by al2o3cr on Thursday February 11, 2016 @08:21AM (#11079918)
My favorite is still:

    new Date('2016-02-11') !== new Date(2016,1,11)
One is midnight in the local TZ, other is midnight in UTC.

(╯°□°)╯︵ ┻━┻

Re:JavaScript's “new Date()” causing 90% of Alibaba's intern... by danrisso3 on Thursday February 11, 2016 @11:48AM (#11081258)
Not to say that one is in February, the other in January.
Re:JavaScript's “new Date()” causing 90% of Alibaba's intern... by rgrove on Thursday February 11, 2016 @01:03PM (#11081751)
They're both in February. Months represented by integers start at 0.

    > new Date(2016,1,11)
    Thu Feb 11 2016 00:00:00 GMT-0800 (PST)
    > new Date('2016-02-11')
    Wed Feb 10 2016 16:00:00 GMT-0800 (PST)
I make the same mistake constantly even though I learned this years ago.