It is mentioned in here, that :
Javascript date getDay() method returns the day of the week for the specified date according to local time.
I cannot understand why local time influences the output of that method?
At the moment I'm writing this question, It is
Tuesday, February 11, 2020 11:49:46 pm in Honolulu, Hawaii, USA and it is
Wednesday, February 12, 2020 03:48:45 am in Houston, Texas, USA
(I've got those local times from here)
So it is Tuesday in one region and Wednesday in another
Though one of the regions is still in Tuesday, But the fact is that in both countries, Wednesday is 12th February!
The only difference I can see is that one of those two regions reaches 12th February a bit later!
Hence, regardless of the local time, new Date(2020, 1, 12).getDay()
should return 3
(Wednesday).
Why is it written that output is according to local time?