-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Handle "start of day" separately from "midnight"
Fixes calculations of start of day in ZonedDateTime.prototype.hoursInDay, ZonedDateTime.prototype.startOfDay(), and ZonedDateTime.prototype.round() with smallestUnit: "day". Updates the following operations to explicitly mean "start of day" and not "midnight": - PlainDate.prototype.toZonedDateTime(timeZoneString) - PlainDate.prototype.toZonedDateTime(options) with omitted or undefined plainTime option - ZonedDateTime.prototype.withPlainTime() with no argument or undefined - Parsing 'YYYY-MM-DD[Zone]' anywhere a ZonedDateTime string is expected This is in order to handle one corner case from the TZDB where clocks were set one hour ahead in America/Toronto at 23:30 on March 30, 1919, meaning that the DST skipped hour encompassed midnight but did not start or end at midnight. (This was probably just in the city of Toronto and maybe some other towns, because time was still locally administered at that time.) Closes: #2910
- Loading branch information
Showing
13 changed files
with
274 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.