captbaritone / captbaritone/datejs

new Date(date) will choke in Safari for various date formats

Open
#117 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?
try newDate(date) with date in a format using - (hyphens) and month in a number
format, not word format.
examples that will choke:
'2011-01-23'
'01-23-2011'
examples that do work in Safari:
'jan 23 2011'
'january 23 2011'

What is the expected output? What do you see instead?
Expected output is a correct date object returned, not NaN

What version of the product are you using? On what operating system?
Safari 5.0.3 Mac OS X 10.5

You can take a look here, in FF and Safari:
http://jsbin.com/uliqu5/12/edit
```

Original issue reported on code.google.com by `raju...@gmail.com` on 20 Jan 2011 at 3:50

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.