lib/roi/rentability.rb in roi_calculator-0.3.1 vs lib/roi/rentability.rb in roi_calculator-0.3.2
- old
+ new
@@ -69,10 +69,10 @@
end
def to_a
dates_with_position.map do |date|
if @rentabilities[date]
- [date.to_time.to_i, @rentabilities[date].share]
+ [date.strftime('%Y-%m-%d'), @rentabilities[date].share]
end
end.compact
end
protected