usha123 / datejs

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

When parsing "12:00 AM", result is 12:00:00, and not 00:00:00 #156

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a js console of some sort, I used chrome...
2. Type "d = Date.parse('12:00 AM');"
3. then "d.toString('HH:mm:ss');"

What is the expected output? What do you see instead?
I expect 00:00:00 but get 12:00:00

What version of the product are you using? On what operating system?
Version: 1.0 Alpha-1

Please provide any additional information below.
I'm guessing something different happens for 12:00 pm.

Original issue reported on code.google.com by palodequ...@gmail.com on 6 Jun 2012 at 8:01

GoogleCodeExporter commented 8 years ago
Works fine on the current build in my fork:  
https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 9 Sep 2013 at 9:02