remove seconds from file's date

This commit is contained in:
ReznoRMichael 2021-07-28 19:54:18 +02:00
parent 5181ed4194
commit 43ece1216b
3 changed files with 9 additions and 7 deletions

View file

@ -7050,13 +7050,15 @@ function FileDateFormat(file) {
var day = fileDate.getDate();
var hour = fileDate.getHours();
var minutes = fileDate.getMinutes();
var seconds = fileDate.getSeconds();
/* var seconds = fileDate.getSeconds(); */
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
if (hour < 10) hour = "0" + hour;
if (minutes < 10) minutes = "0" + minutes;
if (seconds < 10) seconds = "0" + seconds;
return "".concat(year, ".").concat(month, ".").concat(day, " ").concat(hour, ":").concat(minutes, ":").concat(seconds);
/* if (seconds < 10) seconds = "0" + seconds; */
return "".concat(year, ".").concat(month, ".").concat(day, " ").concat(hour, ":").concat(minutes);
}
/* ========================== Event Listeners ========================== */

File diff suppressed because one or more lines are too long

View file

@ -962,15 +962,15 @@ function FileDateFormat(file) {
var day = fileDate.getDate();
var hour = fileDate.getHours();
var minutes = fileDate.getMinutes();
var seconds = fileDate.getSeconds();
/* var seconds = fileDate.getSeconds(); */
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
if (hour < 10) hour = "0" + hour;
if (minutes < 10) minutes = "0" + minutes;
if (seconds < 10) seconds = "0" + seconds;
/* if (seconds < 10) seconds = "0" + seconds; */
return `${year}.${month}.${day} ${hour}:${minutes}:${seconds}`;
return `${year}.${month}.${day} ${hour}:${minutes}`;
}
/* ========================== Event Listeners ========================== */