Skip to content

Commit

Permalink
feat(src/pages/workshop-description/index.js): adicionamos o timer de…
Browse files Browse the repository at this point in the history
…ntro do new date para adicinar as 3horas que o new date nao tem! -@angeloneves19 -@thayanneregoo -@Ester-Arruda
  • Loading branch information
angeloneves19 committed Feb 5, 2024
1 parent f3bab4b commit 6cfaa06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/workshop-description/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ export const WorkshopDetails = () => {
const formatWorkshopDates = (workshop) => {
if (workshop && workshop.attributes && workshop.attributes.data_inicio && workshop.attributes.data_fim) {
return endsOnSameDay(workshop)
? formatDate(new Date(workshop.attributes?.data_inicio))
: `${formatDate(new Date(workshop.attributes?.data_inicio))}
até ${formatDate(new Date(workshop.attributes?.data_fim))}`
? formatDate(new Date(`${workshop.attributes?.data_inicio}T00:00:00-0300`))
: `${formatDate(new Date(`${workshop.attributes?.data_inicio}T00:00:00-0300`))}
até ${formatDate(new Date(`${workshop.attributes?.data_fim}T00:00:00-0300`))}`
}
}

Expand Down

0 comments on commit 6cfaa06

Please sign in to comment.