From 3fa4ca31b6dc45ca80da526e837525ba4009b826 Mon Sep 17 00:00:00 2001 From: Nicola Squartini Date: Wed, 28 Feb 2024 16:27:49 +0100 Subject: [PATCH] fix: change type of dates in publiccode to string (#320) --- src/app/components/Editor.tsx | 4 +--- src/app/contents/publiccode.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/components/Editor.tsx b/src/app/components/Editor.tsx index 9c2108ec..e499e265 100644 --- a/src/app/components/Editor.tsx +++ b/src/app/components/Editor.tsx @@ -95,9 +95,7 @@ export default function Editor() { diff --git a/src/app/contents/publiccode.ts b/src/app/contents/publiccode.ts index 7fa12474..ac133ff4 100644 --- a/src/app/contents/publiccode.ts +++ b/src/app/contents/publiccode.ts @@ -13,7 +13,7 @@ export default interface PublicCode { landingURL?: string; isBasedOn?: string; softwareVersion?: string; - releaseDate: Date; + releaseDate: string; // “YYYY-MM-DD” logo?: string; platforms: Array; categories: Array<(typeof categories)[number]>; @@ -71,7 +71,7 @@ interface Contact { interface Contractor { name: string; - until: Date; + until: string; // “YYYY-MM-DD” email?: string; website?: string; }