Skip to content
Snippets Groups Projects
Verified Commit 8e684ebc authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Add 1 to UTC date.

parent 63e5d7c1
No related branches found
No related tags found
2 merge requests!69Possibility to insert a reservation and new docs.,!68Implement list by date.
......@@ -5,5 +5,7 @@
*/
export const formatDate = (date: Date): string =>
date !== null && date !== undefined
? `${date.getUTCFullYear()}-${date.getUTCMonth() + 1}-${date.getUTCDate()}`
? `${date.getUTCFullYear()}-${date.getUTCMonth() + 1}-${
date.getUTCDate() + 1
}`
: '';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment