Skip to content

Commit

Permalink
fix: endDate formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Guboehm committed Oct 16, 2023
1 parent b9782e0 commit d8a0699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/TaskServiceHook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const useTaskServiceHook = (task: TaskService) => {

const timeInSeconds = Math.floor(Number(nft.endDate) * 1000);
const date = new Date(timeInSeconds);
const dateFormatted = `${date.getDate().toString().padStart(2, '0')}/${(date.getMonth() + 1).toString().padStart(2, '0')}/${date.getFullYear()}`;
const dateFormatted = `${(date.getMonth() + 1).toString().padStart(2, '0')}/${date.getDate().toString().padStart(2, '0')}/${date.getFullYear()}`;
nft.endDate = dateFormatted;
setTaskData(nft);
} catch (error) {
Expand Down

0 comments on commit d8a0699

Please sign in to comment.