Importing a ICS file with an event which rescheduled within one day creates two events at the day
I maintainer di solito rispondono entro 7 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Riproduci il problema con l’ICS fornito e khal --config /tmp/khaltest/config list 2025-09-16 2025-09-16, quindi traccia il modo in cui vengono confrontate le eccezioni di ricorrenza importate e i valori di RECURRENCE-ID. Verifica la semantica dell’RFC collegato e la gestione esistente delle ricorrenze prima di decidere quale debba essere il comportamento previsto. Il lavoro è completato quando l’evento spostato appare una sola volta alle 14:40 e il caso è coperto da un test di regressione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
I have an event which happens every day at 11:40. I've run into a problem with rescheduling the event within a day. In the following example, I moved the event from 11:40 to 14:40. However, khal shows the old and the new event at the day.
If applicable: Stack Trace
It does not crash.
To Reproduce
- Save the following output to /tmp/khaltest/private/8af16f25-ee94-40cb-985d-591e2f3c8f87.ics
BEGIN:VCALENDAR
VERSION:2.0
PRODID:DAVx5/4.5.3-ose ical4j/3.2.19
BEGIN:VTIMEZONE
TZID:Europe/Dublin
BEGIN:STANDARD
DTSTART:19961027T020000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
TZNAME:GMT
TZOFFSETFROM:+0100
TZOFFSETTO:+0000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19810329T010000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
TZNAME:IST
TZOFFSETFROM:+0000
TZOFFSETTO:+0100
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
UID:8af16f25-ee94-40cb-985d-591e2f3c8f87
DTSTART;TZID=Europe/Dublin:20250909T114000
DTEND;TZID=Europe/Dublin:20250909T120000
DTSTAMP:20250916T144605Z
EXDATE;TZID=Europe/Dublin:20250913T114000,20250909T114000
RRULE:FREQ=DAILY;INTERVAL=1
SEQUENCE:2
STATUS:CONFIRMED
SUMMARY:Desayuno
END:VEVENT
BEGIN:VEVENT
UID:8af16f25-ee94-40cb-985d-591e2f3c8f87
RECURRENCE-ID;TZID=Europe/Dublin:20250916T144000
DTSTART;TZID=Europe/Dublin:20250916T144000
DTEND;TZID=Europe/Dublin:20250916T150000
DESCRIPTION:
DTSTAMP:20250916T144605Z
LOCATION:
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:Desayuno
END:VEVENT
END:VCALENDAR
- Create configuration for khal with the following content at
/tmp/khaltest/config:
[calendars]
[[private]]
path = /tmp/khaltest/private
type = calendar
[locale]
timeformat = %H:%M
dateformat = %Y-%m-%d
longdateformat = %Y-%m-%d
datetimeformat = %Y-%m-%d %H:%M
longdatetimeformat = %Y-%m-%d %H:%M
[default]
default_calendar = private
[sqlite]
path = /tmp/khaltest/khal.db
- Run
khal --config /tmp/khaltest/config list 2025-09-16 2025-09-16 - See the output
Today, 2025-09-16
11:40-12:00 Desayuno ⟳
14:40-15:00 Desayuno ⟳
Expected behavior
The output has to be
Today, 2025-09-16
14:40-15:00 Desayuno ⟳
Screenshots
If applicable, add screenshots to help explain your problem.
OS, version, khal version and how you installed it:
- The output of khal --version: khal, version 0.11.3.dev250+g37d9c64db
- Installation method: khal has been cloned from https://github.com/pimutils/khal.git, and installed via
pip install -e . - python version: 3.13.7
- OS: Fedora 41
- Your khal config file: see the content of the configuration file at the step 2 from the section To Reproduce.
- The versions of your other python packages:
aiohappyeyeballs==2.6.1
aiohttp==3.12.15
aiosignal==1.4.0
aiostream==0.7.0
attrs==25.3.0
certifi==2025.8.3
charset-normalizer==3.4.3
click==8.2.1
click-log==0.4.0
configobj==5.0.9
freezegun==1.5.5
frozenlist==1.7.0
hypothesis==6.138.17
icalendar==6.3.1
idna==3.10
iniconfig==2.1.0
-e git+https://github.com/pimutils/khal@37d9c64db1b13831327af4b64172d4dfcc9c6998#egg=khal
multidict==6.6.4
packaging==25.0
pluggy==1.6.0
propcache==0.3.2
Pygments==2.19.2
pytest==8.4.2
python-dateutil==2.9.0.post0
pytz==2025.2
pyxdg==0.28
requests==2.32.5
six==1.17.0
sortedcontainers==2.4.0
typing_extensions==4.15.0
tzdata==2025.2
tzlocal==5.3.1
urllib3==2.5.0
urwid==3.0.2
vdirsyncer==0.20.0
wcwidth==0.2.13
yarl==1.20.1
Additional context
I actually tried to fix on my own. However, my ICS file doesn't seem aligning the specification.
The DATE-TIME value is set to the time when the original recurrence instance would occur; meaning that if the intent is to change a Friday meeting to Thursday, the DATE-TIME is still set to the original Friday meeting.
In my example the DATE-TIME value of the property RECURRENCE-ID is set to the new value. Do I have an invalid "ics"? If it's valid, do you have an idea how can I identify the event which has to be amended?
Amazing project, BTW.
- Lingua principale
- Python
- Stelle
- 3.1k
- Fork
- 243
- Merge medio
- 12g 8h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pimutils/khal
-
khal edit: invalid input at the repeat prompt ends the sessionForse già presa @lee3Q l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 7 giorni
-
Year inference fails for 29.02. outside of Jan/Feb of a leap yearForse già presa @ahsansheikh94 l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 7 giorni
-
Khal cannot parse ISO8601 from system defaultForse già presa @nkgotcode l’ha presa 164 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
pimutils/khal#1469 · 1 commento ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di pimutils/khal
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
QuantConnect/lean-cli#792 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
open-webui/open-webui#35360 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100