{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/2242","repository_url":"https://api.github.com/repos/scala-js/scala-js","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/2242/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2242/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/2242/events","html_url":"https://github.com/scala-js/scala-js/issues/2242","id":133567501,"number":2242,"title":"scala.scalajs.js.Date comparisons always fail ","user":{"login":"ticketapp","id":8992462,"avatar_url":"https://avatars.githubusercontent.com/u/8992462?v=3","gravatar_id":"","url":"https://api.github.com/users/ticketapp","html_url":"https://github.com/ticketapp","followers_url":"https://api.github.com/users/ticketapp/followers","following_url":"https://api.github.com/users/ticketapp/following{/other_user}","gists_url":"https://api.github.com/users/ticketapp/gists{/gist_id}","starred_url":"https://api.github.com/users/ticketapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticketapp/subscriptions","organizations_url":"https://api.github.com/users/ticketapp/orgs","repos_url":"https://api.github.com/users/ticketapp/repos","events_url":"https://api.github.com/users/ticketapp/events{/privacy}","received_events_url":"https://api.github.com/users/ticketapp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scala-js/scala-js/labels/as-designed","name":"as-designed","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-14T19:00:56Z","updated_at":"2016-02-14T19:16:26Z","closed_at":"2016-02-14T19:14:17Z","body":"When I compare two identical dates I always get an error:\r\n\r\n    import scala.scalajs.js.Date\r\n\r\n    val s = \"1457128800000\"\r\n    val aa = new Date(s)\r\n    val bb = new Date(s)\r\n    assert(aa == bb)\r\n\r\n    val s2 = \"Jan 01 1970 01:00:00 GMT+0100 (CET)\"\r\n    val a = new Date(s2)\r\n    val b = new Date(s2)\r\n    assert(a == b)\r\n\r\nThe two assertions always fail. \r\nThanks for any help ;)"},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/183957815","html_url":"https://github.com/scala-js/scala-js/issues/2242#issuecomment-183957815","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2242","id":183957815,"user":{"login":"sjrd","id":535934,"avatar_url":"https://avatars.githubusercontent.com/u/535934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjrd","html_url":"https://github.com/sjrd","followers_url":"https://api.github.com/users/sjrd/followers","following_url":"https://api.github.com/users/sjrd/following{/other_user}","gists_url":"https://api.github.com/users/sjrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjrd/subscriptions","organizations_url":"https://api.github.com/users/sjrd/orgs","repos_url":"https://api.github.com/users/sjrd/repos","events_url":"https://api.github.com/users/sjrd/events{/privacy}","received_events_url":"https://api.github.com/users/sjrd/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T19:16:26Z","updated_at":"2016-02-14T19:16:26Z","body":"Btw, if this was meant as a question/help request (rather than a bug report), it is better to [ask on Stack Overflow](http://stackoverflow.com/questions/tagged/scala.js)."}}