Skip to content

Commit

Permalink
Date format: Remove unnecessary escapement
Browse files Browse the repository at this point in the history
  • Loading branch information
fhemberger committed Nov 4, 2011
1 parent 1426814 commit 4feeecf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def format_date(date, format)
if format.nil? || format.empty? || format == "ordinal"
date_formatted = ordinalize(date)
else
format.gsub!(/%o/, '%%o')
date_formatted = date.strftime(format)
date_formatted.gsub!(/%o/, ordinal(date.strftime('%e').to_i))
end
Expand Down

0 comments on commit 4feeecf

Please sign in to comment.