The situation is in fact even worse than this. The current (ECMA262) spec states:
> When the time zone offset is absent, date-only forms are interpreted as a UTC time and date-time forms are interpreted as a local time.
This is in fact a huge bug in the spec, which was initially unintentional but is now deliberately preserved for web compatibility reasons.
More info here:
https://maggiepint.com/2017/04/11/fixing-javascript-date-web...