rajmohang111 / datejs

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

Date.parse("00:00:00").toString("h:mm tt"); returns 0:00 AM and it should be 12:00 AM #155

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('00:00:00');"
3. then "d.toString('h:mm tt');"

What is the expected output? What do you see instead?
Notice that it returns "0:00 AM" when it should say "12:00 AM"

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

Please provide any additional information below.

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

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

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