From 33cd956e4eeec3b3a0d3a8b3c748bca79b463ce1 Mon Sep 17 00:00:00 2001 From: Luciano Sousa Date: Fri, 1 Aug 2014 00:02:41 -0300 Subject: [PATCH] improving strftime call set non padded config to avoid parse string type twice --- lib/jekyll/post.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index e5709300..4e391a77 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -223,8 +223,8 @@ module Jekyll :month => date.strftime("%m"), :day => date.strftime("%d"), :title => slug, - :i_day => date.strftime("%d").to_i.to_s, - :i_month => date.strftime("%m").to_i.to_s, + :i_day => date.strftime("%-d"), + :i_month => date.strftime("%-m"), :categories => (categories || []).map { |c| c.to_s }.join('/'), :short_month => date.strftime("%b"), :short_year => date.strftime("%y"),