Skip to content

Commit

Permalink
Update v4.3.20250107_2
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilkware committed Jan 13, 2025
1 parent cf75673 commit a5c43a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Abfall_ICS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ v1.2.20250107

* _NEU_: Internationalisierte Anbieterauswahl
* _NEU_: ICS Datei kann vom Filesystem geladen werden
* _FIX_: Events in ICS werden standardmäßig sortiert
* _FIX_: Dokumentation verbessert

v1.1.20240702
Expand Down
4 changes: 2 additions & 2 deletions Abfall_ICS/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ public function Update()
return;
}
// get all events
$events = $ical->events();
$events = $ical->sortEventsWithOrder($ical->events());
// go throw all events
$this->SendDebug(__FUNCTION__, 'ICS Events: ' . $ical->eventCount);
foreach ($events as $event) {
//$this->SendDebug(__FUNCTION__, 'Event: ' . $event->summary . ' = ' . $event->dtstart);
$this->SendDebug(__FUNCTION__, 'Event: ' . $event->summary . ' = ' . $event->dtstart);
$dtstart = substr($event->dtstart, 0, 8);
if ($dtstart < date('Ymd')) {
continue;
Expand Down

0 comments on commit a5c43a8

Please sign in to comment.