{"action":"closed","issue":{"url":"https://api.github.com/repos/sferik/t/issues/250","labels_url":"https://api.github.com/repos/sferik/t/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/sferik/t/issues/250/comments","events_url":"https://api.github.com/repos/sferik/t/issues/250/events","html_url":"https://github.com/sferik/t/issues/250","id":53025777,"number":250,"title":"call `dup` on time for ruby 2.2?","user":{"login":"mcfiredrill","id":66243,"avatar_url":"https://avatars.githubusercontent.com/u/66243?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfiredrill","html_url":"https://github.com/mcfiredrill","followers_url":"https://api.github.com/users/mcfiredrill/followers","following_url":"https://api.github.com/users/mcfiredrill/following{/other_user}","gists_url":"https://api.github.com/users/mcfiredrill/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfiredrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfiredrill/subscriptions","organizations_url":"https://api.github.com/users/mcfiredrill/orgs","repos_url":"https://api.github.com/users/mcfiredrill/repos","events_url":"https://api.github.com/users/mcfiredrill/events{/privacy}","received_events_url":"https://api.github.com/users/mcfiredrill/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-29T08:07:41Z","updated_at":"2015-01-13T12:57:44Z","closed_at":"2015-01-13T12:57:44Z","body":"I tried running the tests on ruby 2.2 and it seems `time` is frozen here:\r\nhttps://github.com/sferik/t/blob/master/lib/t.rb#L8\r\ncausing an exception when calling `localtime`.\r\n\r\nNot sure why this happens. In irb, I can call `localtime` on a frozen `Time` instance just fine.\r\n```\r\n[1] pry(main)> t = Time.new.freeze\r\n=> 2014-12-29 16:52:12 +0900\r\n[2] pry(main)> t.frozen?\r\n=> true\r\n[3] pry(main)> t.localtime\r\n=> 2014-12-29 16:52:12 +0900\r\n```\r\n\r\nI have a pull request to fix this by calling `dup` on time before calling `localtime`, but I always feel kind of lame making pull requests that fix bugs I don't really understand..."}}