Skip to content
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

Date#getUTCDate/getDate/toISOString issues in Opera 10.6 #240

Open
ljharb opened this issue May 19, 2014 · 5 comments
Open

Date#getUTCDate/getDate/toISOString issues in Opera 10.6 #240

ljharb opened this issue May 19, 2014 · 5 comments

Comments

@ljharb
Copy link
Member

ljharb commented May 19, 2014

var d = new Date(-3509827334573292);
assert(d.getMonth() === 0);
assert(d.getUTCMonth() === 0);

Both of these fail in Opera 10.6.

@ljharb ljharb self-assigned this May 19, 2014
@ljharb
Copy link
Member Author

ljharb commented Jun 21, 2015

Added tests in f05e423

@Xotic750
Copy link
Contributor

Just been having a look at this. That's really quite a broken mess. Fixable by replacing all affected methods by the looks of things (quite a few, the 2 you mention, all the toString methods, and the get milliseconds and year, even setFullYear didn't work properly for me), but a real mess. Didn't they think to test Date before shipping?!!

@ljharb
Copy link
Member Author

ljharb commented Dec 19, 2015

and it's not try/catch-able?

@ljharb
Copy link
Member Author

ljharb commented Dec 27, 2015

Updated list of Opera 10.6 failures:

  • #getUTCDate()
    • should return the right value for negative dates
    • Expected -32965446 to be 1, Date(Thu Jan 0-32965446 -109252 03:59:59 GMT-0800).
  • #getDate()
    • should return the right value for negative dates
    • Expected -32965446 to be 1.
  • #toISOString()
    • should return correct dates
    • Expected '-109252-08-78T11:59:59.708Z' to be '-109252-01-01T11:59:59.708Z'.

@Xotic750
Copy link
Contributor

10.6
bs_winxp_opera_10 6

@ljharb ljharb changed the title Date#getMonth/getUTCMonth issues in Opera 10.6 Date#getUTCDate/getDate/toISOString issues in Opera 10.6 Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants