freshlover / datejs

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

[FIXED] Wrong parsing result #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Type "december 9 at 9am"

What is the expected output? What do you see instead?
You will see: Saturday, December 01, 2007 9:00:00 AM
Should be: Sunday, December 09, 2007 9:00:00 AM

What version of the product are you using? On what operating system?
Alpha 1. Firefox

Please provide any additional information below.
Otherwise -- great script! Thanks

Original issue reported on code.google.com by niva...@gmail.com on 28 Nov 2007 at 2:19

GoogleCodeExporter commented 8 years ago
Thanks for pointing out the bug.

The parser is getting confused with the 'at'. We're going to add support for 
ignore
words ("is at the on of") into the parser which should fix the problem.

The following works now...

Date.parse("december 9 9am");
Date.parse("dec 9 9am");

Original comment by geoff%co...@gtempaccount.com on 28 Nov 2007 at 3:07

GoogleCodeExporter commented 8 years ago
Work has started on a fix for this problem.

Original comment by geoff%co...@gtempaccount.com on 28 Nov 2007 at 11:41

GoogleCodeExporter commented 8 years ago
Date.parse("december 9 at 9am") appears to be working now. I'm not entirely 
sure what
changed to make this work, but it does pass now. 

The online "Mad Skillz" widget has been updated with the latest code if you 
want to
confirm this online. 

The latest code has been committed to SVN.

Original comment by geoff%co...@gtempaccount.com on 18 Dec 2007 at 10:55

GoogleCodeExporter commented 8 years ago
forgot to change status.

Original comment by geoff%co...@gtempaccount.com on 18 Dec 2007 at 10:57