diegosae / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

DateUtil.parseW3CDTF does not parse compliant dates #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. DateUtil.parseW3CDTF("2007-07-31");

What is the expected output? What do you see instead?
Expected output should be a properly parsed Date object. Instead an error
is generated with the text "Error: This date does not conform to W3CDTF.".

What version of the product are you using? On what operating system?
as3corelib 0.9, windows vista

Please provide any additional information below.
According to the spec listed in the documentation, there are 6 acceptable
levels for W3CDTF - one being the "YYYY-MM-DD" format. See
http://www.w3.org/TR/NOTE-datetime.

Original issue reported on code.google.com by jam8888...@gmail.com on 31 Jul 2007 at 2:55

GoogleCodeExporter commented 9 years ago
I am also experiencing this same issue.

Error: Unable to parse the string [2007-07-31] into a date. The internal error 
was: Error: This date does not 
conform to W3CDTF.

Original comment by cucumb...@gmail.com on 30 Apr 2008 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by mikechambers on 2 Jul 2008 at 5:52