Comments (5)
Thank you for logging this issue but I am going to need you to be more precise with the event that isn't working for you. calendar.ics
has ~19 recurring events and calendar2.ics
has ~65 which is too much for me to sift through.
Can you provide an example iCal event -- along with its recurring rule (RRULE
) -- which you believe is being processed incorrectly and I can begin investigating?
For example:
BEGIN:VEVENT
DTSTART;VALUE=DATE:20160119
DTEND;VALUE=DATE:20160120
DTSTAMP;TZID="GMT Standard Time":20110121T195741Z
UID:[email protected]
CREATED:20110119T141904Z
DESCRIPTION;LANGUAGE=en-gb:
LAST-MODIFIED:20150409T150000Z
LOCATION:
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY;LANGUAGE=en-gb:test 2
TRANSP:TRANSPARENT
END:VEVENT
For your information, WKST
(week start) is not respected so this library will not alter recurring events and understand this rule.
from ics-parser.
Hello, sorry I was kind of in a hurry.
This one is the missing event from the series I wrote about above in calendar.ics:
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;UNTIL=20160121T103000Z;INTERVAL=1;BYDAY=TH;WKST=MO
EXDATE;TZID=W. Europe Standard Time:20151224T113000,20151231T113000
SUMMARY:WIR: STMD: GB_SAP
DTSTART;TZID=W. Europe Standard Time:20151008T113000
DTEND;TZID=W. Europe Standard Time:20151008T130000
UID:040000008200E00074C5B7101A82E0080000000020A1D4D5C0F6D001000000000000000
010000000FB56DD5A1CDB7A4D82458FE23D0EE342
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20160120T163623Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:1
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
My guess is that the RRULE's UNTIL is not working for some reason. Maybe this is because of the DST-Switch which happened while the series was running. This would be my first guess. You know the series was created while CEST was active (UTC+ 2h) and now it is CET (UTC+1h).
from ics-parser.
I take back the guess with the DST there seems to be a general problem with recurring events. When I use the same calendar.ics file I uploaded and create a new recurring event (I tried daily a daily series with 3 elements) in a small timegap it keeps cutting the last one. Outlook and Evolution both show all 3 elements in the series as it is supposed to be.
from ics-parser.
I found the cause of the problem.
It lies within the fact that in the .ics DTSTART
and DTEND
both lie within the timezone the event was created in, while RRULE
's UNTIL
is always UTC. The parser doesn't take this into account. I made a quick and dirty fix for me which works. If you want I can figure out an universal one to commit here.
from ics-parser.
PR is always welcome
from ics-parser.
Related Issues (20)
- Bump minimum version to PHP 7.4 HOT 2
- Minor phpdoc change for ICal::parseDuration() HOT 2
- Outlook ICS failed to open stream: HTTP request failed! HOT 13
- Support ability to parse CATEGORIES HOT 2
- Issue with URLs that contain an @ symbol HOT 7
- ICal\Event gives deprecation warnings for PHP 8.2 HOT 4
- Undefined array key warning if DESCRIPTION contains HTML ampersand entities HOT 5
- Moving dynamic properties into the private additionalProperties array breaks some existing application code HOT 5
- iCal from outlook is not working HOT 4
- File from URL not working HOT 2
- Not parsing the remote "basic.ics" URL, but only the correspondent downloaded file HOT 2
- Not able to show the correct Timezone time HOT 4
- Recurrence in 5th week of month gets included in first week of next month if there is no 5th week HOT 7
- Deprecated function 'auto_detect_line_endings' in ini_set for php 8 HOT 2
- Emoji's no longer display correctly in v3.3.0 HOT 3
- Dynamic properties in private additionalProperties don't allow determining what properties might exist. HOT 2
- Help request: how to filter events by now() +/- X minutes HOT 2
- Compatibility with webcal url HOT 2
- Non-breaking spaces are removed from DESCRIPTION HOT 1
- Recurrence Rule Tester Is Not Working (The Link is not working)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ics-parser.