Project

General

Profile

Actions

Bug #13036

closed

Date.parse mishandling spanish months "Abril y Agosto"

Added by greutter (Gonzalo Reutter) almost 8 years ago. Updated almost 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:78659]

Description

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 2016
2.3.0 :004 > Date.parse("01-Abril-2016")
=> 01 Apr 2016

Actual behavior

"Agosto" is parsed to December
"Abril" is parsed to December.

System configuration

Ruby 2.3.0

Would much like to fix this myself, should be straight forward, but I'm a hobby developer and have never contributed to a project.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0