stevenwy / datejs

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

Not parsing MMM for Apr and Aug #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Date.parse("15 Aug 2009")
2. Date.parse("15 Apr 2009")
3.

What is the expected output? What do you see instead?
Expected:Wed Apr 15 2009 00:00:00 GMT+1100 (AUS Eastern Daylight Time)
Actual:Wed Apr 01 2009 00:00:00 GMT+1100 (AUS Eastern Daylight Time)
NB the day portion of the date says 01 not 15

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

Please provide any additional information below.
Seems to be just a problem with parsing the months starting with A, I
assume this is something to do with it interfering with the time parsing
and looking for an "a" token for AM. Just a guess though.

Original issue reported on code.google.com by michael....@gmail.com on 11 Aug 2009 at 9:17

GoogleCodeExporter commented 9 years ago
You can parse "15 Apr 2009" with Date.parseExact("15 Apr 2009","d MMM yyyy") 
but not
Date.parse("15 Apr 2009")

Original comment by michael....@gmail.com on 11 Aug 2009 at 9:19

GoogleCodeExporter commented 9 years ago
Also appears in: date-en-NZ.js
* Version: 1.0 Alpha-1 
* Build Date: 13-Nov-2007

Only affects April and August, other months are fine. 

Original comment by mcn...@gmail.com on 7 Jul 2010 at 3:00

GoogleCodeExporter commented 9 years ago
Fixed in (grab from SVN)
 * @version: 1.0 Alpha-1
 * @author: Coolite Inc. http://www.coolite.com/
 * @date: 2008-05-13

Borked in 
 * Version: 1.0 Alpha-1 
 * Build Date: 13-Nov-2007

Original comment by mcn...@gmail.com on 7 Jul 2010 at 4:15

GoogleCodeExporter commented 9 years ago
This is still an issue in the latest svn release. Any update?

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

GoogleCodeExporter commented 9 years ago
works in the current build on my fork: https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 16 Sep 2013 at 6:58