Fix: wrong argument passed

This commit is contained in:
Giuseppe 2020-11-26 21:41:24 +01:00
parent 96ee17b8cc
commit 0a9846b86f
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ const DateFormat = {
if (typeof dt === 'number') {
dt = new Date(dt);
}
return dt ? new Date().toISOString().replaceAll(':', '-').slice(0, 19) : '';
return dt ? dt.toISOString().replaceAll(':', '-').slice(0, 19) : '';
}
};