Fix dates format
This commit is contained in:
parent
cb192f4b1e
commit
daf997ee92
4 changed files with 10 additions and 10 deletions
|
@ -86,7 +86,7 @@ function View({ assignment, dropzone, layoutType }) {
|
|||
<Typography sx={subHeaderTypography} variant="body1" component="div">
|
||||
<strong>Data de entrega: </strong>
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(assignment.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(assignment.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
</Stack>
|
||||
|
|
|
@ -148,7 +148,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
@ -196,7 +196,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
@ -326,7 +326,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
@ -374,7 +374,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
|
|
@ -122,7 +122,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
@ -170,7 +170,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
@ -294,7 +294,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
@ -342,7 +342,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|||
>
|
||||
<strong>Data de entrega: </strong>{' '}
|
||||
{capitalizeFirstLetter(
|
||||
dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]')
|
||||
dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]')
|
||||
)}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
|
|
@ -7,7 +7,7 @@ function hasUpperCase(str) {
|
|||
}
|
||||
|
||||
function hasSpecialChars(str) {
|
||||
const specialChars = /[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/;
|
||||
const specialChars = /[`!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/;
|
||||
return specialChars.test(str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue