Changed graphics panel (stick to right) + corrected month in date indicator
This commit is contained in:
@ -27,7 +27,7 @@ class DatesIndicator extends HTMLElement{
|
||||
let date = new Date(timestamp);
|
||||
let dayName = this.dayNumberToName(date.getDay());
|
||||
let day = date.getDate();
|
||||
let month = date.getMonth();
|
||||
let month = date.getMonth() + 1; //getMonth returns number between 0 and 1
|
||||
let year = date.getFullYear();
|
||||
|
||||
return dayName + ", " + day.toString().padStart(2, "0") + "/" + month.toString().padStart(2, "0") + "/" + year ;
|
||||
|
Reference in New Issue
Block a user