Issue #6818 has been reported by babak (Babak B). ---------------------------------------- Bug #6818: Incorrect Date.parse results https://bugs.ruby-lang.org/issues/6818 Author: babak (Babak B) Status: Open Priority: High Assignee: Category: Target version: ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0] Since this is a standard library and I couldn't find a dedicated page for the Date module require 'time > Date.parse '07/31/2012' ArgumentError: invalid date from (pry):3:in `parse' In the United States, MM/DD/YYYY is perhaps the most common way to write dates. I found somewhere in prior posts suggestions to convert to Euro style which may alson include DD/MM/YYYY but that is not correct for US. There should at least be a way to choose the region, it can not always be deduced from syntax of date alone.
on 2012-07-31 09:59
on 2012-07-31 10:43
Issue #6818 has been updated by shyouhei (Shyouhei Urabe). Priority changed from High to Low Pissed off. I hereby propose to deprecate this feature. ---------------------------------------- Bug #6818: Incorrect Date.parse results https://bugs.ruby-lang.org/issues/6818#change-28570 Author: babak (Babak B) Status: Open Priority: Low Assignee: Category: Target version: ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0] Since this is a standard library and I couldn't find a dedicated page for the Date module require 'time > Date.parse '07/31/2012' ArgumentError: invalid date from (pry):3:in `parse' In the United States, MM/DD/YYYY is perhaps the most common way to write dates. I found somewhere in prior posts suggestions to convert to Euro style which may alson include DD/MM/YYYY but that is not correct for US. There should at least be a way to choose the region, it can not always be deduced from syntax of date alone.
on 2012-08-05 00:44
Issue #6818 has been updated by tadf (tadayoshi funaba). Status changed from Open to Rejected Assignee set to tadf (tadayoshi funaba) it is not a bug. us is minority. i think we should just ignore the case, so far. ---------------------------------------- Bug #6818: Incorrect Date.parse results https://bugs.ruby-lang.org/issues/6818#change-28653 Author: babak (Babak B) Status: Rejected Priority: Low Assignee: tadf (tadayoshi funaba) Category: Target version: ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0] Since this is a standard library and I couldn't find a dedicated page for the Date module require 'time > Date.parse '07/31/2012' ArgumentError: invalid date from (pry):3:in `parse' In the United States, MM/DD/YYYY is perhaps the most common way to write dates. I found somewhere in prior posts suggestions to convert to Euro style which may alson include DD/MM/YYYY but that is not correct for US. There should at least be a way to choose the region, it can not always be deduced from syntax of date alone.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.