-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-WR-TIMEZONE causes EXDATE of series to be ignored #98
Comments
I just required <?php
require_once "./vendor/autoload.php";
use ICal\ICal;
date_default_timezone_set('europe/berlin');
$ical = new ICal([
"BEGIN:VCALENDAR",
"VERSION:2.0",
"CALSCALE:GREGORIAN",
"METHOD:PUBLISH",
"X-WR-TIMEZONE:Europe/Berlin",
"BEGIN:VEVENT",
"DTSTART:20161205T140000",
"DTEND:20161205T160000",
"RRULE:FREQ=MONTHLY;BYDAY=1MO",
"EXDATE:20170102T140000",
"DTSTAMP:20161206T211738Z",
"SEQUENCE:0",
"STATUS:CONFIRMED",
"TRANSP:OPAQUE",
"END:VEVENT",
"END:VCALENDAR"
]);
?>
<ul><?php foreach ($ical->eventsFromRange("2017-01-01", "2017-03-31") as $e) { ?>
<li><?php echo strftime("%d.%m.%y", $ical->iCalDateToUnixTimestamp($e->dtstart)); } ?>
</ul> |
Refrain from using `gmdate()` and instead refer to supplied timezone info
@dominikschreiber: the latest |
Hey, sorry for me appearing offensive last time. I didn't mean it, you're doing a great work on your free time, and I really want to thank you for that. Commit f9f5866 fixes this issue. For some reason, I have a huge performance drop from commit dde72dc (~3s to load https://calendar.google.com/calendar/ical/efg.ludwigshafen%40gmail.com/public/basic.ics, parse it, and render all events in a month in a table) over f9f5866 (~15s) to 4de3963 (~45s). I'm ok with that (use it for a script running once every 2 months), but this feels quite alarming... |
@dominikschreiber - glad to hear I have fixed the problem you reported in this issue. I shall look into the performance drop you mentioned (#99) and see what could be the cause. |
@dominikschreiber - I have analysed all 20 commits since the release of
|
Issue Description
I'm experiencing deleted series entries of a google calendar being shown in the
$ical->eventsFromRange
result. In my attempt to find out why this happens, I observed thatX-WR-TIMEZONE:Europe/Berlin
seems to cause theEXDATE
to be ignored. If you remove this line, theEXDATE
has effect.See a minimal example below.
Sadly I'm too bad of a php developer to fix this with a pull request, but I hope you can work with the information I have here.
Minimal Example
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: