Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

Fix month usage #85

Merged
merged 1 commit into from
Jul 31, 2019
Merged

Fix month usage #85

merged 1 commit into from
Jul 31, 2019

Conversation

La0
Copy link
Contributor

@La0 La0 commented Jul 31, 2019

🤦‍♂️

@La0 La0 added the bug label Jul 31, 2019
@La0 La0 requested a review from marco-c July 31, 2019 13:44
@La0 La0 self-assigned this Jul 31, 2019
@@ -10,7 +10,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 a6b7b03 into mozilla:gh-pages Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants