From 34a6ecd039aafe35de7bccf4db6f22bc7d128bdb Mon Sep 17 00:00:00 2001 From: Alex <$(pass /github/email)> Date: Tue, 8 Oct 2024 07:35:42 +0200 Subject: [PATCH] add default RFC3339 datestring --- frontend/src/lib/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/utils/utils.js b/frontend/src/lib/utils/utils.js index e71fd67..408525f 100644 --- a/frontend/src/lib/utils/utils.js +++ b/frontend/src/lib/utils/utils.js @@ -112,7 +112,7 @@ export function formatError(obj) { } export function toRFC3339(dateString) { - if (!dateString) return ""; + if (!dateString) dateString = "0001-01-01T00:00:00.000Z"; const date = new Date(dateString); return date.toISOString(); }