Monday, November 07, 2016

undefined method `to_time_in_current_zone' for DateTime

I got this error while upgrading a Rails 3.2 project to Rails 4.2. This method has been removed from Rails 4.1. The resolution is to use
in_time_zone instead of to_time_in_current_zone

No comments:

Post a Comment