This commit is contained in:
hamid zarghami
2025-02-24 16:09:39 +03:30
parent e8512bb147
commit a94f31db04
3 changed files with 44 additions and 17 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ import { ServiceItemType } from '../service/types/ServiceTypes'
import { useCreateAnnoncement } from './hooks/useAnnoncementData'
import { ErrorType } from '../../helpers/types'
import { toast } from 'react-toastify'
import moment from 'moment-jalaali'
const Create: FC = () => {
@@ -119,7 +120,7 @@ const Create: FC = () => {
<div className='bg-white mt-10 w-sidebar text-xs hidden 2xl:block h-fit px-5 py-7 rounded-3xl'>
<DatePickerComponent
label={t('announcement.publish_date')}
onChange={(d) => formik.setFieldValue('publishAt', d)}
onChange={(d) => formik.setFieldValue('publishAt', moment(d, 'jYYYY-jMM-jDD').format('YYYY-MM-DD'))}
placeholder={t('select')}
/>