diff --git a/lib/octopress-date-format.rb b/lib/octopress-date-format.rb index 1fbbba7..d11de8a 100644 --- a/lib/octopress-date-format.rb +++ b/lib/octopress-date-format.rb @@ -70,11 +70,11 @@ def format_time(date, html=false) # Returns an ordidinal date eg July 22 2007 -> July 22nd 2007 def ordinalize(date) - "#{date.strftime('%b %-d')}#{ordinal_suffix(date)}, #{date.strftime('%Y')}" + "#{date.strftime('%B %-d')}#{ordinal_suffix(date)}, #{date.strftime('%Y')}" end def ordinalize_html(date) - d = "#{date.strftime('%b')} " + d = "#{date.strftime('%B')} " d += "#{date.strftime('%-d')}" d += "#{ordinal_suffix(date)}, " d += "#{date.strftime('%Y')}" diff --git a/test/_expected/2014/07/03/test.html b/test/_expected/2014/07/03/test.html index cfab719..afa7201 100644 --- a/test/_expected/2014/07/03/test.html +++ b/test/_expected/2014/07/03/test.html @@ -2,20 +2,20 @@

Date

Updated

diff --git a/test/_expected/2014/07/03/welcome-to-jekyll.html b/test/_expected/2014/07/03/welcome-to-jekyll.html index 964d2ad..6d26372 100644 --- a/test/_expected/2014/07/03/welcome-to-jekyll.html +++ b/test/_expected/2014/07/03/welcome-to-jekyll.html @@ -3,19 +3,19 @@ ## Date - Date: 2014-07-03 14:08:00 +0000 -- Formatted Date: Jul 3rd, 2014 +- Formatted Date: July 3rd, 2014 - Formatted Time: 2:08 pm - Date XML: 2014-07-03T14:08:00+00:00 -- Date HTML: -- Date Time HTML: +- Date HTML: +- Date Time HTML: ## Updated - Date: 2014-07-03 15:03:15 +0000 -- Formatted Date: Jul 3rd, 2014 +- Formatted Date: July 3rd, 2014 - Formatted Time: 3:03 pm - XML: 2014-07-03T15:03:15+00:00 -- HTML: -- Date Time HTML: +- HTML: +- Date Time HTML: diff --git a/test/_expected/index.html b/test/_expected/index.html index a246052..3a4615b 100644 --- a/test/_expected/index.html +++ b/test/_expected/index.html @@ -4,20 +4,20 @@ ## Date - Date: 2014-07-03 14:08:00 +0000 -- Formatted Date: Jul 3rd, 2014 +- Formatted Date: July 3rd, 2014 - Formatted Time: 2:08 pm - Date XML: 2014-07-03T14:08:00+00:00 -- Date HTML: -- Date Time HTML: +- Date HTML: +- Date Time HTML: ## Updated - Date: 2014-07-03 15:03:15 +0000 -- Formatted Date: Jul 3rd, 2014 +- Formatted Date: July 3rd, 2014 - Formatted Time: 3:03 pm - XML: 2014-07-03T15:03:15+00:00 -- HTML: -- Date Time HTML: +- HTML: +- Date Time HTML: @@ -26,20 +26,20 @@ ## Date - Date: 2014-07-03 14:08:00 +0000 -- Formatted Date: Jul 3rd, 2014 +- Formatted Date: July 3rd, 2014 - Formatted Time: 2:08 pm - Date XML: 2014-07-03T14:08:00+00:00 -- Date HTML: -- Date Time HTML: +- Date HTML: +- Date Time HTML: ## Updated - Date: 2014-07-04 16:03:05 +0000 -- Formatted Date: Jul 4th, 2014 +- Formatted Date: July 4th, 2014 - Formatted Time: 4:03 pm - XML: 2014-07-04T16:03:05+00:00 -- HTML: -- Date Time HTML: +- HTML: +- Date Time HTML: diff --git a/test/_expected/page.html b/test/_expected/page.html index 3705930..71cf47d 100644 --- a/test/_expected/page.html +++ b/test/_expected/page.html @@ -3,11 +3,11 @@ ## Date - Date: 2013-08-16 14:08:15 +0000 -- Formatted Date: Aug 16th, 2013 +- Formatted Date: August 16th, 2013 - Formatted Time: 2:08 pm - Date XML: 2013-08-16T14:08:15+00:00 -- Date HTML: -- Date Time HTML: +- Date HTML: +- Date Time HTML: