Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Normative: Date.parse treats date-only no offset as UTC #138
Previously, date-time forms without offsets were specified as local time and date-only forms were unspecified. This clarifies the web-reality semantics of interpreting date-only forms without offsets as UTC time.
While this fixes the spec to match what browsers have implemented, I'd like to state for the record that I think it is wrong.
IMHO, the behavior should be consistent for both forms. Writing
Of course, if midnight local time doesn't exist due to DST transition, such as
Hopefully this can be re-addressed in some future version.