mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
🐛 Fix error when finalizing all-day event
This commit is contained in:
parent
8ec075b80f
commit
09c409526d
1 changed files with 3 additions and 5 deletions
|
@ -655,11 +655,9 @@ export const polls = router({
|
|||
message: "Failed to generate ics",
|
||||
});
|
||||
} else {
|
||||
const timeZone = poll.timeZone ?? "UTC";
|
||||
const timeZoneAbbrev = getTimeZoneAbbreviation(
|
||||
eventStart.toDate(),
|
||||
timeZone,
|
||||
);
|
||||
const timeZoneAbbrev = poll.timeZone
|
||||
? getTimeZoneAbbreviation(eventStart.toDate(), poll.timeZone)
|
||||
: "";
|
||||
const date = eventStart.format("dddd, MMMM D, YYYY");
|
||||
const day = eventStart.format("D");
|
||||
const dow = eventStart.format("ddd");
|
||||
|
|
Loading…
Add table
Reference in a new issue