INCLUDE_DATA

Entries from October 2008 ↓

ActionView::TemplateError (undefined method `adjust’ for #) on line #3 of vendor/plugins/exception_notification/views/exception_notifier/_timestamp.rhtml:

Got that one? Ha! Me too :)

Well apparently, Rails 2.1 doesn’t have TimeZone.adjust anymore, which is being called by vendor/plugins/exception_notification/views/exception_notifier/_timestamp.rhtml. All you have to do is replace those two lines:

time_zone = TimeZone.new(”Eastern Time (US & Canada)”)
timestamp = time_zone.adjust(Time.now)

and replace them with:

time_zone = ActiveSupport::TimeZone.new(”Eastern Time (US & Canada)”)
timestamp = Time.now.in_time_zone(time_zone)

A diff file is attached. Happy updating!

exception_notifier_tz_fix