fixes time generation function

This commit is contained in:
Jeremy Schomery 2017-02-05 09:45:44 +03:30
parent a13bce4673
commit fbfaa969b5

View File

@ -45,7 +45,7 @@ function onLoadFromFileClick(){
function generateFileName(){ function generateFileName(){
var today = new Date(); var today = new Date();
var dd = '0' + today.getDate(); var dd = '0' + today.getDate();
var mm = '0' + today.getMonth() + 1; var mm = '0' + (today.getMonth() + 1);
var yyyy = today.getFullYear(); var yyyy = today.getFullYear();
dd = dd.substr(-2); dd = dd.substr(-2);