[TikiWiki-commits] [Git][tikiwiki/tiki][26.x] [FIX] working days calculation fix when end date falls on a holiday - getting...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68c3c70f5eb17_2dde4b8386bf@gitlab-sidekiq-low-urgency-cpu-bound-v2-d8d944b8-8n7dr.mail>

Victor Emanouilov pushed to branch 26.x at Tiki Wiki CMS Groupware / Tiki


Commits:
62b4dc7e by Victor Emanouilov at 2025-09-12T10:08:58+03:00
[FIX] working days calculation fix when end date falls on a holiday - getting events did not get the current date because of timestamp comparison issue

- - - - -


1 changed file:

- lib/calendar/calendarlib.php


Changes:

=====================================
lib/calendar/calendarlib.php
=====================================
@@ -2212,7 +2212,7 @@ class CalendarLib extends TikiLib
         if (empty($prefs['calendar_holidays'])) {
             return 0;
         }
-        $events = $this->get_events($prefs['calendar_holidays'], [], null, min($ts1, $ts2), max($ts1, $ts2));
+        $events = $this->get_events($prefs['calendar_holidays'], [], null, min($ts1, $ts2), max($ts1, $ts2)+1);
         $dates = [];
         foreach ($events as $event) {
             $start = $event['start'];



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/62b4dc7ec6693971e238cde014f22120da8134e0
You're receiving this email because of your account on gitlab.com.

_______________________________________________
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.