{"issue":{"created_at":"2011-11-22T17:31:21Z","state":"open","updated_at":"2011-11-23T18:50:19Z","user":{"gravatar_id":"ff8d752bc77d9b25e4b457401ea0f84c","id":637158,"url":"https://api.github.com/users/ryanlecompte","login":"ryanlecompte","avatar_url":"https://secure.gravatar.com/avatar/ff8d752bc77d9b25e4b457401ea0f84c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"We ran into this issue in production where the following was not working as expected:\r\n\r\nt = Time.now.in_time_zone(...)\r\nt.today?\r\n\r\nThe reason is that the existing implementation of ActiveSupport::TimeWithZone#today? delegates to the redefined Time#today?, which was just comparing the current instance's #to_date with ::Date.current, which of course has no idea that the compared instance had a timezone configured via #in_time_zone. The attached pull request fixes this.\r\n\r\n\r\n","assignee":null,"id":2320471,"number":3723,"labels":[],"pull_request":{"patch_url":"https://github.com/rails/rails/pull/3723.patch","html_url":"https://github.com/rails/rails/pull/3723","diff_url":"https://github.com/rails/rails/pull/3723.diff"},"title":"ActiveSupport::TimeWithZone#today? does not respect an instance-based time zone","closed_at":null,"html_url":"https://github.com/rails/rails/issues/3723","milestone":null,"url":"https://api.github.com/repos/rails/rails/issues/3723"},"action":"created","comment":{"created_at":"2011-11-23T18:50:19Z","updated_at":"2011-11-23T18:50:19Z","user":{"gravatar_id":"18efee6ee5a12946d983169eff2540f2","id":36079,"url":"https://api.github.com/users/lest","login":"lest","avatar_url":"https://secure.gravatar.com/avatar/18efee6ee5a12946d983169eff2540f2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Could you provide test case that is failing with current implementation? ","id":2852995,"url":"https://api.github.com/repos/rails/rails/issues/comments/2852995"}}