mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 18:51:52 +02:00
🐛 Fix update options bug (#1116)
This commit is contained in:
parent
533e347557
commit
b55ebebda7
5 changed files with 9 additions and 5 deletions
|
@ -193,7 +193,6 @@ export const polls = router({
|
|||
|
||||
if (end) {
|
||||
return {
|
||||
start: new Date(`${start}Z`),
|
||||
startTime: input.timeZone
|
||||
? dayjs(start).tz(input.timeZone, true).toDate()
|
||||
: dayjs(start).utc(true).toDate(),
|
||||
|
@ -202,7 +201,6 @@ export const polls = router({
|
|||
};
|
||||
} else {
|
||||
return {
|
||||
start: new Date(start.substring(0, 10) + "T00:00:00Z"),
|
||||
startTime: dayjs(start).utc(true).toDate(),
|
||||
pollId,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue