Skip to content

Commit 307b135

Browse files
authored
Docs typo on dst weirdness (#962)
1 parent 1f99fdd commit 307b135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zones.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Most of the time, DST shifts will happen without you having to do anything about
228228

229229
### Invalid times
230230

231-
Some local times simply don't exist. The Spring Forward DST shift involves shifting the local time forward by (usually) one hour. In my zone, `America/New_York`, on March 12, 2017 the millisecond after 1:59:59.999 is 3:00:00.000. Thus the times between 2:00:00.000 and 2:59:59.000, inclusive, don't exist in that zone. But of course, nothing stops a user from constructing a DateTime out of that local time.
231+
Some local times simply don't exist. The Spring Forward DST shift involves shifting the local time forward by (usually) one hour. In my zone, `America/New_York`, on March 12, 2017 the millisecond after 1:59:59.999 is 3:00:00.000. Thus the times between 2:00:00.000 and 2:59:59.999, inclusive, don't exist in that zone. But of course, nothing stops a user from constructing a DateTime out of that local time.
232232

233233
If you create such a DateTime from scratch, the missing time will be advanced by an hour:
234234

0 commit comments

Comments
 (0)