Permalink
Browse files

Date format: Remove unnecessary escapement

  • Loading branch information...
1 parent 1426814 commit 4feeecfdeff7defa19bbe300842e14118e869c02 @fhemberger fhemberger committed Nov 4, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 plugins/date.rb
View
@@ -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

0 comments on commit 4feeecf

Please sign in to comment.