audited icon indicating copy to clipboard operation
audited copied to clipboard

undefined method `user_input_in_time_zone'

Open acellam opened this issue 5 years ago • 2 comments

I upgrade to rails 5.1.7. On created_at and audited_changes date i get this error.

ActionView::Template::Error (undefined method `user_input_in_time_zone' for #ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter:0x00007fd8e58674a8):

the date looks like this Sat, 31 Aug 2019 20:30:29 UTC +00:00:Time

acellam avatar Sep 08 '19 10:09 acellam

I am running into a similar problem with delayed_job. @mistaguy did you figure out a solution?

drewB avatar Dec 05 '19 01:12 drewB

@drewB i never found a solution. so i decided to ignore the date and changes using

<% begin %>
   <%= "#{audit.created_at} - #{time_ago_in_words(audit.created_at)}" %> ago
   <% rescue => e%>
   &nbspc;
<% end %>
 <% begin %>
   <%= audit.audited_changes %>
   <% rescue => e%>
    &nbsp;
<% end %>

acellam avatar Apr 13 '20 18:04 acellam