JosephMajaseSithole / datejs

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

Date.parse("12:00 PM") returns null #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

`Date.parse("12:00 PM")` 

What is the expected output? What do you see instead?

Should return the current date at noon, but instead returns `null`.

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

date.js:
  * Version: 1.0 Alpha-1 
  * Build Date: 13-Nov-2007

Browers tested:
  * Firefox 3.0.8
  * Safari 4

Please provide any additional information below.

Doesn't seem to matter if I try `Date.parse("12:00 PM")`  or `Date.parse("12 
PM")` -- they both return `null`.
Note that `Date.parse('12 AM')` _does_ work correctly.

Original issue reported on code.google.com by kyle.fox on 22 Apr 2009 at 9:46

GoogleCodeExporter commented 8 years ago
Please ensure you are using the latest build from SVN, see 
http://www.datejs.com/svn/.

The code appears to work correctly with the svn build. 

Hope this helps.

Original comment by geoff%co...@gtempaccount.com on 22 Apr 2009 at 10:34

GoogleCodeExporter commented 8 years ago
Thanks!  That does indeed solve the issue.

Original comment by kyle.fox on 22 Apr 2009 at 10:44

GoogleCodeExporter commented 8 years ago
This seems to still be a bug with the latest download version?

I went to SVN, but the latest version is not there?

Original comment by mathias....@lfg.com on 24 Jan 2012 at 4:30

GoogleCodeExporter commented 8 years ago
Any update on this? I have the same bug. Date.parse is returning a null value 
when in April.

Original comment by pfro...@gmail.com on 2 Apr 2012 at 8:24