pip install picsexl
from datetime import datetime, timezone
from picsexl import PIcsExl
p = PIcsExl(
file_path="/path/to/your/file.ics",
mail_to="[email protected]",
start_date=datetime(2022, 10, 1, 0, 0, 0, tzinfo=timezone.utc),
end_date=datetime(2022, 10, 30, 23, 59, 59, tzinfo=timezone.utc),
to_timezone="America/Los_Angeles",
)
p.run_sniff_and_write_ics_lines()