mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-01 10:11:50 +02:00
Allow legacy polls to change dates
This commit is contained in:
parent
c8d3811daf
commit
a049ec79c6
1 changed files with 5 additions and 1 deletions
|
@ -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 ?? "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue