lib/vgcal/handlers/describer.rb in vgcal-0.1.0 vs lib/vgcal/handlers/describer.rb in vgcal-0.1.1
- old
+ new
@@ -72,11 +72,11 @@
(Date.today - options[:date].delete('-').to_i).to_s
else
(Date.today + options[:date].to_i).to_s
end
elsif options['start-date'] && options['end-date']
- Date.parse(options['start-date']).to_s
+ Date.parse(options['start-date'].to_s)
else
Date.today.to_s
end
"#{s_date}T00:00:00+09:00"
end
@@ -96,10 +96,10 @@
(Date.today - options[:date].delete('-').to_i).to_s
else
(Date.today + options[:date].to_i).to_s
end
elsif options['start-date'] && options['end-date']
- Date.parse(options['end-date']).to_s
+ Date.parse(options['end-date'].to_s)
else
Date.today.to_s
end
"#{e_date}T23:59:59+09:00"
end