-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LocalTimeZoneAdjustment/LocalTZA follow-ups necessary #1070
Comments
cc @jungshik |
@anba I'm curious about your point about |
@apaprocki Because the input can be a local time value which includes the time zone offset, which means it can overflow the maximum allowed time value. |
@anba Do you believe the specification currently requires such calculations to be done exactly due to the use of mathematical values in all calculations? |
@littledan The difference between mathematical values and IEEE-754 numbers resp. it's safe-integer subset is, for once, not relevant. 😄 I think the test case for that issue was something like this. // Assume the local time offset is positive, let's say TZ=Europe/Berlin.
var d = new Date(8640000000000000); // d.[[DateValue]] = 8,640,000,000,000,000
d.setMilliseconds(0); 20.3.4.23 Date.prototype.setMilliseconds ( ms )
20.3.1.9 UTC ( t )
Similar, when |
@anba I will incorporate this into my editorial cleanup of |
The text in #1160 looks good to me! 👍 |
It's dropped but back in tzdata 2018e. @anba, is your concern about the following ?
|
@jungshik I added an explicit statement covering this in my PR: https://github.com/tc39/ecma262/pull/1160/files#diff-3540caefa502006d8a33cb1385720803R27507 |
@jungshik |
In addition to the fixes in #1053:
Some sentences should be simplified/split-up so they're easier to understand. For example instead of
"LocalTZA( t, isUTC ) is an implementation-defined algorithm that must return a number representing milliseconds suitable for adding to a Time Value."
we could just as well just write:
"LocalTZA is an implementation-defined algorithm that returns the local time zone offset in milliseconds."
<dfn>
seems to be used incorrectly a number of times (i.e. it's not used to define a term, but merely to change the formatting).LocalTZA's
t
parameter is described as a time value. This is incorrect,t
can be a number value outside of the allowed range for time values.The fourth paragraph seems to imply that a daylight saving time offset is always positive. This is no longer true starting with tzdata2018a.
The text was updated successfully, but these errors were encountered: