Permalink
Browse files

Fix date parsing

  • Loading branch information...
1 parent fa7b766 commit b74199ea660ea6d8e3899302706322dd1cd39dda @joshuaclayton committed Aug 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 irbrc.d/core_extensions.rb
@@ -22,6 +22,6 @@ def self.string_to_file(string, path)
%w(January February March April May June July August September October November December).each_with_index do |month, index|
Object.send :define_method, month do |day, year|
- Date.parse("#{index + 1}/#{day}/#{year}")
+ Date.parse("#{day}/#{index + 1}/#{year}")
end
end

0 comments on commit b74199e

Please sign in to comment.