sinij / datejs

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

Date.parse("12:30 PM") returns NULL #169

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Date.parse("Any Date, 12:30 PM");
2. Returns Null
3.

What is the expected output? What do you see instead?
Should see the date parsed - instead it's null.

What version of the product are you using? On what operating system?
1.0 Alpha-1, OSX 10.8.3

Please provide any additional information below.

Original issue reported on code.google.com by jimkr...@gmail.com on 26 Mar 2013 at 1:32

Attachments:

GoogleCodeExporter commented 8 years ago
I just tried it on Date.js's homepage in the Mad Skillz field and it works. )-: 
?

Original comment by jimkr...@gmail.com on 26 Mar 2013 at 1:37

GoogleCodeExporter commented 8 years ago
Date.parse('12:00 PM') == null
Date.parse('12:00 AM') == Date {Fri Apr 19 2013 12:00:00}

It doesn't seem to matter what the minutes part is; if the hour portion is "12" 
and you have a PM suffix, it returns null.

Original comment by markn...@gmail.com on 19 Apr 2013 at 5:34

GoogleCodeExporter commented 8 years ago
I version of datejs on the public site is different to the downloads site; the 
downloads site is dated 13-Nov-2007, the one on the site is 2008-05-13. I 
grabbed http://datejs.com/build/date.js and used that instead; seems to be fine.

This project seems to be abandoned, so I don't hold out any hope for further 
updates.

Original comment by markn...@gmail.com on 19 Apr 2013 at 5:40

GoogleCodeExporter commented 8 years ago
Fixed in my current fork - https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 8 Sep 2013 at 12:46