From 6936bbded8171d0a42be875e61ed40bfd080e297 Mon Sep 17 00:00:00 2001 From: John Piasetzki Date: Sat, 18 May 2013 00:24:14 -0400 Subject: [PATCH] Changed the jekyll steps to write only the date and time for tests. This avoids timezone issues. --- features/step_definitions/jekyll_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 75330738..b818d2a1 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -68,7 +68,7 @@ Given /^I have the following (draft|post)s?(?: (.*) "(.*)")?:$/ do |status, dire '%m/%d/%Y' # why even end 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') path = File.join(before || '.', '_posts', after || '.', "#{date}-#{title}.#{ext}") end