Skip to content

Fix getMonth usage. #89

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

Merged
merged 3 commits into from
Aug 5, 2019
Merged

Fix getMonth usage. #89

merged 3 commits into from
Aug 5, 2019

Conversation

La0
Copy link
Contributor

@La0 La0 commented Jul 31, 2019

@La0 La0 added bug Something isn't working frontend Javascript Frontend labels Jul 31, 2019
@La0 La0 requested a review from marco-c July 31, 2019 13:46
@La0 La0 self-assigned this Jul 31, 2019
@@ -16,7 +16,8 @@ async function graphHistory(history, path) {

let dateStr = function(timestamp){
let date = new Date(timestamp);
return date.getDate() + '/' + date.getMonth() + '/' + date.getFullYear();
let month = date.getMonth() + 1;
return date.getDate() + '/' + month + '/' + date.getFullYear();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: you could use a template string

@La0 La0 merged commit 5e106b5 into mozilla:master Aug 5, 2019
@La0 La0 deleted the fix-month branch September 10, 2019 09:21
La0 pushed a commit to La0/code-coverage that referenced this pull request Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Javascript Frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants