lib/octopress/page.rb in octopress-3.0.0.rc.6 vs lib/octopress/page.rb in octopress-3.0.0.rc.7
- old
+ new
@@ -72,10 +72,10 @@
date ||= 'now'
if date == 'now'
@options['date'] = Time.now.iso8601
else
begin
- Time.parse(date.to_s).iso8601
+ Time.parse(date.to_s, Time.now).iso8601
rescue => error
puts 'Could not parse date. Try formatting it like YYYY-MM-DD HH:MM'
abort error.message
end
end