Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14172 | Rev 15237 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 14172 Rev 14173
Línea 24... Línea 24...
24
			<Datetime
24
			<Datetime
25
				dateFormat="DD-MM-YYYY"
25
				dateFormat="DD-MM-YYYY"
26
				timeFormat={false}
26
				timeFormat={false}
27
				onChange={(e) => {
27
				onChange={(e) => {
28
					if (Date.now() > new Date(e.toDate()).getTime()) {
28
					if (Date.now() > new Date(e.toDate()).getTime()) {
29
						return (dispatch(addNotification({
29
						return dispatch(addNotification({
30
							style: 'danger',
30
							style: 'danger',
31
							msg: 'La fecha no puede ser anterior  la actual'
31
							msg: 'La fecha no puede ser igual o anterior a la actual'
32
						})))
32
						}))
33
					}
33
					}
34
					setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
34
					setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
35
				}}
35
				}}
36
				initialValue={Date.parse(year)}
36
				initialValue={new Date(new Intl.DateTimeFormat('es-ES', year).format())}
37
				inputProps={{ className: 'form-control' }}
37
				inputProps={{ className: 'form-control' }}
38
				closeOnSelect
38
				closeOnSelect
39
			/>
39
			/>
40
		</SubmitModal>
40
		</SubmitModal>
41
	)
41
	)