Changed the jekyll steps to write only the date and time for tests. This avoids timezone issues.
This commit is contained in:
parent
5cc65de628
commit
6936bbded8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue