andrew-morris / parsedatetime

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

Varying month abbreviations cause different output in terms of "day" when parsed #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. c = pdc.Constants()
2. p = pdt.Calendar(c)
3. >>> p.parse('sept 5th at 8pm')
((2010, 9, 1, 20, 0, 0, 5, 233, 0), 3)

What is the expected output? What do you see instead?
I would have expected that this varied spelling of Sept would generate the 
correct output of the 5th of September instead of the 1st of September.  I 
would expect the output to match the following:

>>> p.parse('sep 5th at 8pm')
((2010, 9, 5, 20, 0, 0, 5, 233, 0), 3)

Instead the output is:

((2010, 9, 1, 20, 0, 0, 5, 233, 0), 3)

What version of the product are you using? On what operating system?
0.8.7 on Mac OS X 10.5

Please provide any additional information below.

Original issue reported on code.google.com by jsk...@gmail.com on 22 Aug 2010 at 3:30