captbaritone / captbaritone/datejs

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

Open
#156 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. 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

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.