greutter (Gonzalo Reutter)
- Login: greutter
- Registered on: 12/15/2016
- Last sign in: 12/31/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
12/31/2016
-
04:40 PM Ruby Bug #13036: Date.parse mishandling spanish months "Abril y Agosto"
- Even if Ruby have never intended to parse dates other than English it works quite well parsing Spanish dates. I'm quite confident that it uses [dates_international.rb](https://gist.github.com/jackrg/2927162) for the magic. I base my beli...
12/15/2016
-
02:49 PM Ruby Bug #13036: Date.parse mishandling spanish months "Abril y Agosto"
- ## UPDATE:
I tracked the problem to dates_international.rb (https://gist.github.com/jackrg/2927162)
The problem is solved replacing line 37.
From:
37: month_from = string[/[^\s\d,]+/i]
To:
37: month_from = string[/[a-... -
02:11 PM Ruby Bug #13036 (Rejected): Date.parse mishandling spanish months "Abril y Agosto"
- ### Steps to reproduce
$ irb
2.3.0 :003 > Date.parse("01-Agosto-2016")
=> 01 Dec 2016
2.3.0 :004 > Date.parse("01-Abril-2016")
=> 01 Dec 2016
### Expected behavior
2.3.0 :003 > Date.parse("01-Agosto-2016")
=> 01 Aug 201...