pingjiang / datejs

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

Incorrect toString format for hours #154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a date where the HOUR is 0 (12am)
2. format the date to string using toString('h')

What is the expected output? What do you see instead?
I expect to see "12", to represent 12 am - conforming to 
http://code.google.com/p/datejs/wiki/FormatSpecifiers

h      The hour of the day between 1-12.     "1"  to "12"

Instead I see "0"

What version of the product are you using? On what operating system?
Latest version. Chrome (latest) on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by nimblea...@gmail.com on 31 May 2012 at 12:14

GoogleCodeExporter commented 9 years ago
I'm having the same issue, which seems to have been reported and fixed before:

http://code.google.com/p/datejs/issues/detail?id=24

I'll patch my version. Is there still active development on this? If not, 
should it be passed off to someone?

Original comment by rmannin...@gmail.com on 1 Dec 2012 at 8:19

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 9 Sep 2013 at 9:10