From ab9c927f88c8bea056fbaf2386539e10109ecc55 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Thu, 5 Oct 2023 12:40:16 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20payment=5FendDate=20=E0=B9=83=E0=B8=99=20calender?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/src/routes/competitive/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/src/routes/competitive/+page.server.ts b/cms/src/routes/competitive/+page.server.ts index db13259..ea2f3a1 100644 --- a/cms/src/routes/competitive/+page.server.ts +++ b/cms/src/routes/competitive/+page.server.ts @@ -23,7 +23,7 @@ export const load: PageServerLoad = async ({ fetch }) => { } if (ex.payment_startDate) { const start = ex.payment_startDate; - const end = dayjs(ex.payment_startDate).add(1, 'day').format('YYYY-MM-DD'); + const end = dayjs(ex.payment_endDate).add(1, 'day').format('YYYY-MM-DD'); events.push({ id, title: 'ชำระเงิน:' + title, start, end, url, backgroundColor: '#D2B4DE' }); } if (ex.examDate) {