lib/shamu/json_api/presenter.rb in shamu-0.0.11 vs lib/shamu/json_api/presenter.rb in shamu-0.0.13

- old
+ new

@@ -58,10 +58,10 @@ # @param [Object] value the value to be coerced. # @return [Object] def attribute_value( value ) case value when Date, DateTime then - value.to_date.to_time.iso8601 + value.to_date.iso8601 when Time, ActiveSupport::TimeWithZone then value.iso8601 else value end end