captbaritone / captbaritone/datejs

Incorrect toString format for hours

Open
#154 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.