Fix dates format

This commit is contained in:
Leonardo Murça 2023-11-19 17:12:37 -03:00
parent cb192f4b1e
commit daf997ee92
4 changed files with 10 additions and 10 deletions

View file

@ -86,7 +86,7 @@ function View({ assignment, dropzone, layoutType }) {
<Typography sx={subHeaderTypography} variant="body1" component="div"> <Typography sx={subHeaderTypography} variant="body1" component="div">
<strong>Data de entrega: </strong> <strong>Data de entrega: </strong>
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(assignment.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(assignment.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
</Stack> </Stack>

View file

@ -148,7 +148,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography
@ -196,7 +196,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography
@ -326,7 +326,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography
@ -374,7 +374,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography

View file

@ -122,7 +122,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography
@ -170,7 +170,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography
@ -294,7 +294,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography
@ -342,7 +342,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
> >
<strong>Data de entrega: </strong>{' '} <strong>Data de entrega: </strong>{' '}
{capitalizeFirstLetter( {capitalizeFirstLetter(
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
)} )}
</Typography> </Typography>
<Typography <Typography

View file

@ -7,7 +7,7 @@ function hasUpperCase(str) {
} }
function hasSpecialChars(str) { function hasSpecialChars(str) {
const specialChars = /[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/; const specialChars = /[`!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/;
return specialChars.test(str); return specialChars.test(str);
} }