diff --git a/packages/frontend/src/app/services/import.service.ts b/packages/frontend/src/app/services/import.service.ts index a6003526..52153b3d 100644 --- a/packages/frontend/src/app/services/import.service.ts +++ b/packages/frontend/src/app/services/import.service.ts @@ -23,7 +23,7 @@ export class ImportService { const date = new Date(); return this.translate.instant("pages.import.defaultLabel", { - dateStamp: `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`, + dateStamp: `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, "0")}-${date.getDate().toString().padStart(2, "0")} ${date.getHours().toString().padStart(2, "0")}:${date.getMinutes().toString().padStart(2, "0")}:${date.getSeconds().toString().padStart(2, "0")}`, }); }