File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
web/core/components/cycles Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
33import React , { useEffect , useState } from "react" ;
4+ import { format } from "date-fns" ;
45import { mutate } from "swr" ;
56// types
67import type { CycleDateCheckData , ICycle , TCycleTabOptions } from "@plane/types" ;
@@ -131,8 +132,8 @@ export const CycleCreateUpdateModal: React.FC<CycleModalProps> = (props) => {
131132 if ( payload . start_date && payload . end_date ) {
132133 if ( data ?. start_date && data ?. end_date )
133134 isDateValid = await dateChecker ( payload . project_id ?? projectId , {
134- start_date : payload . start_date ,
135- end_date : payload . end_date ,
135+ start_date : format ( payload . start_date , "yyyy-MM-dd" ) ,
136+ end_date : format ( payload . end_date , "yyyy-MM-dd" ) ,
136137 cycle_id : data . id ,
137138 } ) ;
138139 else
You can’t perform that action at this time.
0 commit comments