Include timezone offset in new post template for YAML Front-Matter

Closes #1419.
This commit is contained in:
J. B. Rainsberger 2013-11-17 15:33:09 -05:00 committed by Parker Moore
parent e01dc8ae27
commit b57935d42c

View File

@ -108,7 +108,7 @@ task :new_post, :title do |t, args|
post.puts "---" post.puts "---"
post.puts "layout: post" post.puts "layout: post"
post.puts "title: \"#{title.gsub(/&/,'&')}\"" post.puts "title: \"#{title.gsub(/&/,'&')}\""
post.puts "date: #{Time.now.strftime('%Y-%m-%d %H:%M')}" post.puts "date: #{Time.now.strftime('%Y-%m-%d %H:%M:%S %z')}"
post.puts "comments: true" post.puts "comments: true"
post.puts "categories: " post.puts "categories: "
post.puts "---" post.puts "---"