Fix an issue with ActiveSupport::TimeWithZone can't be coerced into Float