Skip to content

Commit

Permalink
fixing #67
Browse files Browse the repository at this point in the history
  • Loading branch information
baerengraben authored and baerengraben committed Jan 4, 2022
1 parent 712571c commit 5bb91fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function getTimeFormattet(actualDate) {
*/
function getActualDateFormattet(actualDate) {
var year = (actualDate.getFullYear());
var month = ((actualDate.getMonth()+1)<10?'0':'') + actualDate.getMonth()+1;
var month = ((actualDate.getMonth()+1)<10?'0':'') + (actualDate.getMonth()+1);
var day = (actualDate.getDate()<10?'0':'') + actualDate.getDate();
var hour = (actualDate.getHours()<10?'0':'') + actualDate.getHours();
var minutes = (actualDate.getMinutes()<10?'0':'') + actualDate.getMinutes();
Expand Down

0 comments on commit 5bb91fc

Please sign in to comment.