From daf997ee92dacbbd9f8453b6f3853d579131701d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Sun, 19 Nov 2023 17:12:37 -0300 Subject: [PATCH] Fix dates format --- src/screens/Assignment/View.js | 2 +- src/screens/professor/Classroom/AssignmentsTab/index.js | 8 ++++---- src/screens/student/Classroom/AssignmentsTab/index.js | 8 ++++---- src/utils/validations.js | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/screens/Assignment/View.js b/src/screens/Assignment/View.js index b4ecdbe..a84cd25 100644 --- a/src/screens/Assignment/View.js +++ b/src/screens/Assignment/View.js @@ -86,7 +86,7 @@ function View({ assignment, dropzone, layoutType }) { Data de entrega: {capitalizeFirstLetter( - dayjs(assignment.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(assignment.dueDate).format('dddd, DD/MM, HH:mm[h]') )} diff --git a/src/screens/professor/Classroom/AssignmentsTab/index.js b/src/screens/professor/Classroom/AssignmentsTab/index.js index 33ee9fa..5fd9e52 100644 --- a/src/screens/professor/Classroom/AssignmentsTab/index.js +++ b/src/screens/professor/Classroom/AssignmentsTab/index.js @@ -148,7 +148,7 @@ function AssignmentsTab({ assignmentsTabData, layoutType }) { > Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} Data de entrega: {' '} {capitalizeFirstLetter( - dayjs(a.dueDate).format('dddd, DD/MM | HH:mm[h]') + dayjs(a.dueDate).format('dddd, DD/MM, HH:mm[h]') )} \/?~]/; + const specialChars = /[`!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/; return specialChars.test(str); }