adzap / timeliness

Fast date/time parsing for the control freak.
http://github.com/adzap/timeliness
MIT License
224 stars 27 forks source link

Timeliness 0.3.7 fails when using strict formats "d mmmm yyyy" & "dd mmmm yyyy" #16

Closed edwinmeyer closed 8 years ago

edwinmeyer commented 9 years ago

Timeliness 0.3.7 fails when using strict formats "d mmmm yyyy" & "dd mmmm yyyy", e.g. Timeliness.parse("1 Jan 2012", :format => "d mmmm yyyy") SyntaxError: (eval):1: duplicated argument name def process(day,month,month,year) from bundle/ruby/1.9.1/gems/timeliness-0.3.7/lib/timeliness/format.rb:62:in `instance_eval'

adzap commented 8 years ago

There is not 'mmmm' format token defined. Perhaps that is the problem. Did you mean mmm?