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

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


Commits:
e4275d30 by Victor Emanouilov at 2025-09-12T10:08:42+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/e4275d303f3cddda50e6edeb528f4159854fd7ec

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