{"action":"opened","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2883","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2883/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2883/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2883/events","html_url":"https://github.com/jruby/jruby/issues/2883","id":71504414,"number":2883,"title":"DateTime.iso8601 fails with an error (incompatibility)","user":{"login":"kares","id":45967,"avatar_url":"https://avatars.githubusercontent.com/u/45967?v=3","gravatar_id":"","url":"https://api.github.com/users/kares","html_url":"https://github.com/kares","followers_url":"https://api.github.com/users/kares/followers","following_url":"https://api.github.com/users/kares/following{/other_user}","gists_url":"https://api.github.com/users/kares/gists{/gist_id}","starred_url":"https://api.github.com/users/kares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kares/subscriptions","organizations_url":"https://api.github.com/users/kares/orgs","repos_url":"https://api.github.com/users/kares/repos","events_url":"https://api.github.com/users/kares/events{/privacy}","received_events_url":"https://api.github.com/users/kares/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%201.7.x","name":"JRuby 1.7.x","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-28T07:01:34Z","updated_at":"2015-04-28T07:01:34Z","closed_at":null,"body":"```\r\njruby-1.7.19 :004 > require 'date'\r\n => true \r\njruby-1.7.19 :005 > DateTime.parse '2014-07-08T17:51:36.000Z'\r\n => #<DateTime: 2014-07-08T17:51:36+00:00 ((2456847j,64296s,0n),+0s,2299161j)> \r\njruby-1.7.19 :006 > puts DateTime.parse '2014-07-08T17:51:36.000Z'\r\n2014-07-08T17:51:36+00:00\r\n => nil \r\njruby-1.7.19 :007 > DateTime.iso8601('2014-07-08T17:51:36.000Z')\r\nNoMethodError: undefined method `/' for \"000\":String\r\n\tfrom /opt/local/rvm/rubies/jruby-1.7.19/lib/ruby/1.9/date.rb:1778:in `new_by_frags'\r\n\tfrom /opt/local/rvm/rubies/jruby-1.7.19/lib/ruby/1.9/date.rb:1829:in `iso8601'\r\n\tfrom (irb):7:in `evaluate'\r\n\tfrom org/jruby/RubyKernel.java:1107:in `eval'\r\n\tfrom org/jruby/RubyKernel.java:1507:in `loop'\r\n\tfrom org/jruby/RubyKernel.java:1270:in `catch'\r\n\tfrom org/jruby/RubyKernel.java:1270:in `catch'\r\n\tfrom /opt/local/rvm/rubies/jruby-1.7.19/bin/irb:13:in `(root)'\r\n```\r\n\r\nexpected :\r\n\r\n```\r\n1.9.3-p551 :001 > require 'date'\r\n => true \r\n1.9.3-p551 :002 > DateTime.iso8601('2014-07-08T17:51:36.000Z')\r\n => #<DateTime: 2014-07-08T17:51:36+00:00 ((2456847j,64296s,0n),+0s,2299161j)> \r\n1.9.3-p551 :003 > puts DateTime.iso8601('2014-07-08T17:51:36.000Z')\r\n2014-07-08T17:51:36+00:00\r\n => nil \r\n```\r\n\r\ntaken from: http://stackoverflow.com/questions/29786162/datetime-iso86012014-07-08t175136-000z-results-in-nomethoderror"}}