From 17cf60c22be0ec88a18eae0ddd3c3117c493b446 Mon Sep 17 00:00:00 2001 From: Clemens Rau <48509979+ClemensRau1337@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:17:08 +0200 Subject: [PATCH] Update timestamp func --- src/database/dynamodb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/dynamodb.ts b/src/database/dynamodb.ts index 2ccf0d4..960f2f1 100644 --- a/src/database/dynamodb.ts +++ b/src/database/dynamodb.ts @@ -31,7 +31,7 @@ export class DynamoClient { * @param parentId */ - function formatDateToCustomFormat(date: Date): string { + public async formatDateToCustomFormat(date: Date): string { const dd = String(date.getDate()).padStart(2, '0'); const mm = String(date.getMonth() + 1).padStart(2, '0'); // Monate sind von 0 bis 11 const yyyy = date.getFullYear();