You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the ES5.1 and ES2015 spec, Date.UTC(year, month, ...) should add 1900 to year when 0 ≤ year ≤ 99, but Jurassic (tested with commit a22ef7c) currently interprets it as full year (whereas for the new Date(...) constructor, the behavior is correct).
Expected behavior:
console.log(Date.UTC(70,0));// Should print "0"
Actual behavior:
console.log(Date.UTC(70,0));// Prints "-59958144000000"
Thanks!
The text was updated successfully, but these errors were encountered:
According to the ES5.1 and ES2015 spec,
Date.UTC(year, month, ...)
should add 1900 toyear
when 0 ≤year
≤ 99, but Jurassic (tested with commit a22ef7c) currently interprets it as full year (whereas for thenew Date(...)
constructor, the behavior is correct).Expected behavior:
Actual behavior:
Thanks!
The text was updated successfully, but these errors were encountered: