Update for supported new date field

This commit is contained in:
schooltechx 2023-04-12 16:41:55 +07:00
parent 1b1c37510b
commit f8254e92c9
13 changed files with 135 additions and 178 deletions

View file

@ -13,7 +13,7 @@ export const load: PageServerLoad = async ({params,fetch}) => {
throw error(500,{message:`พบข้อผิดพลาดเกี่ยวกับข้อมูลสอบคัดเลือก ${id}`})
}
const post:Exam = await res.json()
post.date= post.start? dayjs(post.start).format("DD MMM BBBB"):""
post.date=dayjs(post.announcement_startDate).format("DD MMM BBBB")
return post
}