Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Month parsing error #8

Open
bpatrik opened this issue Aug 4, 2018 · 0 comments
Open

Month parsing error #8

bpatrik opened this issue Aug 4, 2018 · 0 comments

Comments

@bpatrik
Copy link

bpatrik commented Aug 4, 2018

Hi,
(I have typescript fork from this lib, and I found an error. I'm just letting you know, since you have the same error: )

The creation date month parsing is incorrect at this line.

date.slice(4, 6) returns with an integer between [1,12], while Date.UTC expects an int between [0,11]:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC

Best,
Patrik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant