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",
|
message: "Failed to generate ics",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const timeZone = poll.timeZone ?? "UTC";
|
const timeZoneAbbrev = poll.timeZone
|
||||||
const timeZoneAbbrev = getTimeZoneAbbreviation(
|
? getTimeZoneAbbreviation(eventStart.toDate(), poll.timeZone)
|
||||||
eventStart.toDate(),
|
: "";
|
||||||
timeZone,
|
|
||||||
);
|
|
||||||
const date = eventStart.format("dddd, MMMM D, YYYY");
|
const date = eventStart.format("dddd, MMMM D, YYYY");
|
||||||
const day = eventStart.format("D");
|
const day = eventStart.format("D");
|
||||||
const dow = eventStart.format("ddd");
|
const dow = eventStart.format("ddd");
|
||||||
|
|
Loading…
Add table
Reference in a new issue