Changed the jekyll steps to write only the date and time for tests. This avoids timezone issues.

This commit is contained in:
John Piasetzki 2013-05-18 00:24:14 -04:00
parent 5cc65de628
commit 6936bbded8
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ Given /^I have the following (draft|post)s?(?: (.*) "(.*)")?:$/ do |status, dire
'%m/%d/%Y' # why even '%m/%d/%Y' # why even
end end
parsed_date = DateTime.strptime(post['date'], format) parsed_date = DateTime.strptime(post['date'], format)
post['date'] = parsed_date.to_s post['date'] = parsed_date.strftime('%Y-%m-%d %H:%M')
date = parsed_date.strftime('%Y-%m-%d') date = parsed_date.strftime('%Y-%m-%d')
path = File.join(before || '.', '_posts', after || '.', "#{date}-#{title}.#{ext}") path = File.join(before || '.', '_posts', after || '.', "#{date}-#{title}.#{ext}")
end end