[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <68c3c6f62244a_2cde5585664a@gitlab-sidekiq-low-urgency-cpu-bound-v2-d8d944b8-lrg9j.mail>

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


Commits:
19a727e6 by Victor Emanouilov at 2025-09-12T10:08:31+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
=====================================
@@ -2321,7 +2321,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/19a727e67538d1c5ec430d4cbfcfd195c45355df

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/19a727e67538d1c5ec430d4cbfcfd195c45355df
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.