Skip to content

Conversation

@JMPJNS
Copy link

@JMPJNS JMPJNS commented Jun 17, 2023

This PR is a potential fix to #311 by parsing non recurring ics events in the users current local timezone

@JMPJNS JMPJNS changed the title + use the users local timezone for non recurring ics events Use the users local timezone for non recurring ics events Jun 17, 2023
import ical from "ical.js";
import { OFCEvent, validateEvent } from "../../types";
import { DateTime } from "luxon";
import { DateTime, DateTimeJSOptions } from "luxon";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use an import type here?

Suggested change
import { DateTime, DateTimeJSOptions } from "luxon";
import { DateTime, type DateTimeJSOptions } from "luxon";

@ngsilverman
Copy link

ngsilverman commented Jan 29, 2024

Hey @JMPJNS ! I have an overlapping change in the works (#539) which also takes into account the timezone set by ICS, perhaps we could combine our efforts in some way? I like your approach of making the zone a function parameter (I just removed it entirely in my PR).

@ArenSH ArenSH mentioned this pull request Jan 30, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants