News for hackers. Stuff that matters.
Re:I have chosen the wrong flight dates because your date pi... by userbinator on Saturday February 02, 2019 @04:46PM (#19065935)
I'm very curious how a bug like this could even happen. At a glance it doesn't appear to be the classic "ISO week-based year" problem discussed on HN a few times before, but somehow the code thinks Feb 1 2019 is a Wednesday... weeks starting with Sun vs Mon wouldn't account for the off-by-2 error seen here.
Re:I have chosen the wrong flight dates because your date pi... by Kaivo on Saturday February 02, 2019 @05:17PM (#19066112)
I looks as if they started their calendar year with January 1st on Sunday. Maybe they just never even bothered to align the dates with the week days.
Re:I have chosen the wrong flight dates because your date pi... by yuchi on Saturday February 02, 2019 @05:19PM (#19066132)
I’ve been scratching my head about this too. I can’t find a way to introduce such a bug in a date picker. The only one I’m thinking is a off by one when reading the month/year.

For example an API with 0-11 months, and one with 1-12. You’d get info of the wrong month.

Re:I have chosen the wrong flight dates because your date pi... by gpm on Saturday February 02, 2019 @06:50PM (#19066689)
Can't be the month, it has the right number of days.

Can't be the year, 2018 and 2020 also don't have February 2 on Thursday.

It can't even be the month but only for the starting day, neither January nor March have their 2nd on a Thursday.

Re:I have chosen the wrong flight dates because your date pi... by taormina on Saturday February 02, 2019 @05:51PM (#19066308)
Could've been hardcoded for an older year for a deadline? Never got implemented to use the correct calendar based on the year?
Re:I have chosen the wrong flight dates because your date pi... by lultimouomo on Saturday February 02, 2019 @06:08PM (#19066433)
I sure hope not, because in that case that thing has been broken for the whole 2018!
Re:I have chosen the wrong flight dates because your date pi... by int_19h on Saturday February 02, 2019 @08:21PM (#19067128)
According to that Twitter thread, it has been broken for 2 years.
Re:I have chosen the wrong flight dates because your date pi... by Falkon1313 on Sunday February 03, 2019 @05:58AM (#19068920)
As another comment pointed out, just try it with a 2-digit year: https://www.timeanddate.com/calendar/monthly.html?year=19&mo...
Re:I have chosen the wrong flight dates because your date pi... by throwaway415415 on Saturday February 02, 2019 @06:43PM (#19066647)
It's stupid to not have a yyyymmdd format anyway. The American mmddyyyy format causes a lot of confusion.