Update for supported new date field
This commit is contained in:
parent
1b1c37510b
commit
f8254e92c9
13 changed files with 135 additions and 178 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue