I'm at West Coast, verified 7 hours behind UTC/GMT. Thought the followings are equivalent
const d = new Date('2023-01-01');
const d2 = new Date('2023-01-01 0:0:0.000');
Result:
Sat Dec 31 2022 16:00:00 GMT-0800 (Pacific Standard Time)
Sun Jan 01 2023 00:00:00 GMT-0800 (Pacific Standard Time)
Why are Zero hours, minutes, seconds and milliseconds are ahead? And why it's not 7 hours diff?