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

Fix date value in timestamp #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

seri530
Copy link

@seri530 seri530 commented Oct 4, 2018

The date.getMonth() returns with a value between 0 and 11 (e.g.: January == 0). To display the correct date, you should add 1 to that.

Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.099% when pulling ec3f6b0 on seri530:master into e91659d on Upplication:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.099% when pulling ec3f6b0 on seri530:master into e91659d on Upplication:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.099% when pulling ec3f6b0 on seri530:master into e91659d on Upplication:master.

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

Successfully merging this pull request may close these issues.

2 participants