Allow legacy polls to change dates

This commit is contained in:
Luke Vella 2022-04-12 14:00:32 +01:00
parent c8d3811daf
commit a049ec79c6

View file

@ -56,7 +56,11 @@ const ManagePoll: React.VoidFunctionComponent<{
}
: {
type: "date",
date: start,
date:
start.indexOf("T") === -1
? start
: // legacy polls
new Date(start).toISOString().substring(0, 10),
};
}),
timeZone: poll.timeZone ?? "",