ilyesdata / parsedatetime

Automatically exported from code.google.com/p/parsedatetime
Apache License 2.0
0 stars 0 forks source link

The English event parser doesn't recognise "day month" format, only "month day" format #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 12 jan
2. 12 Jan
3. 12 January

What is the expected output? 
Need exact date

What do you see instead?
Junk date

What version of the product are you using? On what operating system?

Linux

Please provide any additional information below.

Original issue reported on code.google.com by gnperu...@gmail.com on 21 Feb 2009 at 9:25

GoogleCodeExporter commented 8 years ago
US English date format is month-day but in international English markets (UK, 
CA, AU, NZ, IN, etc) the standard 
format is day-month.

Original comment by alan.jo...@gmail.com on 27 Feb 2009 at 10:46

GoogleCodeExporter commented 8 years ago
This is not a fix, but if you want to do a straight switch between MM/DD/YY and 
DD/MM/YY then you can manually edit around line 349 to:

        #v = [ v1, v2, v3 ]
        v = [ v2, v1, v3 ] # British Format

Original comment by col.wils...@gmail.com on 11 Feb 2010 at 10:34