File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,10 +139,11 @@ export function TaskTemplatePreview({
139139 </ section >
140140 < section className = "mb-2" >
141141 < p className = "text-body-s text-muted-foreground" >
142- Created by{ ' ' }
142+ Created on { new Date ( taskTemplatePreview . createdAt ) . toDateString ( ) } by{ ' ' }
143143 < span className = "text-label-xs text-muted-foreground font-bold" >
144144 { taskTemplatePreview . author ?. name ?? '-' }
145- </ span >
145+ </ span > . Last updated on{ ' ' }
146+ { new Date ( taskTemplatePreview . updatedAt ) . toDateString ( ) } .
146147 </ p >
147148 < Link
148149 href = "#"
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ export const AssessmentTemplateSchema = z.object({
1010 orgId : z . string ( ) ,
1111 authorId : z . string ( ) ,
1212 notes : blockNoteContentSchema . default ( [ ] ) ,
13- createdAt : z . coerce . date ( ) ,
14- updatedAt : z . coerce . date ( ) ,
13+ createdAt : z . date ( ) ,
14+ updatedAt : z . date ( ) ,
1515} ) ;
1616
1717export const CreateAssessmentTemplateSchema = AssessmentTemplateSchema . omit ( {
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ export const TaskTemplateSchema = z.object({
2323 authorId : z . string ( ) ,
2424 estimatedTime : z . number ( ) . int ( ) . default ( 0 ) ,
2525 timeout : z . number ( ) . int ( ) . default ( 0 ) ,
26- createdAt : z . coerce . date ( ) ,
27- updatedAt : z . coerce . date ( ) ,
26+ createdAt : z . date ( ) ,
27+ updatedAt : z . date ( ) ,
2828} ) ;
2929
3030export const TaskTemplateEditorSchema = TaskTemplateSchema . extend ( {
You can’t perform that action at this time.
0 commit comments