mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-16 10:26:20 +02:00
Revert legacy poll date formatting
This commit is contained in:
parent
a6e39cc2c3
commit
e830d0b0f4
2 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,8 @@ export const decodeDateOption = (
|
|||
}
|
||||
|
||||
// we add the time because otherwise Date will assume UTC time which might change the day for some time zones
|
||||
const date = new Date(option + "T00:00:00");
|
||||
const dateString = option.indexOf("T") === -1 ? option + "T00:00:00" : option;
|
||||
const date = new Date(dateString);
|
||||
return {
|
||||
type: "date",
|
||||
day: format(date, "dd"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue