[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Calendar: correctly import all-day events from ICS files

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a7595399ca8d_3819f690980a3@gitlab-sidekiq-low-urgency-cpu-bound-v2-c656d8947-l6j5v.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
c2ae0ce6 by Adrien Mbuya Maloba at 2026-08-07T08:03:43+00:00
[FIX] Calendar: correctly import all-day events from ICS files
---
* [FIX] Calendar: correctly import all-day events from ICS files

See merge request tikiwiki/tiki!10825

- - - - -


1 changed file:

- lib/core/Tiki/SabreDav/Utilities.php


Changes:

=====================================
lib/core/Tiki/SabreDav/Utilities.php
=====================================
@@ -355,6 +355,17 @@ class Utilities
                 $rec->setAllday(empty($convertToString($component->{'X-Tiki-Allday'})) ? 0 : 1);
             }
         }
+        // Detect all-day events, including imported ICS files
+        $isAllDay = ! $component->DTSTART->hasTime();
+        if (isset($component->{'X-Tiki-Allday'})) {
+            $isAllDay = ! empty($convertToString($component->{'X-Tiki-Allday'}));
+        }
+        if ($isAllDay) {
+            $result['allday'] = 1;
+            if ($rec) {
+                $rec->setAllday(1);
+            }
+        }
         if (isset($component->{'X-Tiki-sendReminder'})) {
             $result['sendReminder'] = empty($convertToString($component->{'X-Tiki-sendReminder'})) ? 0 : 1;
         }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c2ae0ce6425c87982c967277677733565ad7b826

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c2ae0ce6425c87982c967277677733565ad7b826
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.