แก้ไข payment_endDate ใน calender

This commit is contained in:
AnandaTon 2023-10-05 12:40:16 +07:00
parent f8f28048b0
commit ab9c927f88

View file

@ -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) {