diff options
Diffstat (limited to 'app/helpers/imports_helper.rb')
-rw-r--r-- | app/helpers/imports_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/imports_helper.rb b/app/helpers/imports_helper.rb index c2d4c59ea..ab3a26b6e 100644 --- a/app/helpers/imports_helper.rb +++ b/app/helpers/imports_helper.rb @@ -46,7 +46,7 @@ module ImportsHelper # Returns the options for the date_format setting def date_format_options Import::DATE_FORMATS.map do |f| - format = f.gsub('%', '').gsub(/[dmY]/) do + format = f.delete('%').gsub(/[dmY]/) do {'d' => 'DD', 'm' => 'MM', 'Y' => 'YYYY'}[$&] end [format, f] |