Normative: Date.parse treats date-only no offset as UTC#138
Conversation
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.
|
LGTM |
|
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. |
|
@mj1856, in an ideal world, I'd agree with you. But like so many problems with JavaScript, it turned out that this can't be fixed without breaking the web. So I doubt there's ever going to be a chance to rectify it. |
|
FWIW, I also agree :) But I'm going to pull this in now! |
|
Committed as 4f4a37a. |
Normative: Intl.DateTimeFormat.prototype.formatToParts.length is 1
This is a potential fix for #87. 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.