[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 | <68c3c707518de_2c70721848268@gitlab-sidekiq-low-urgency-cpu-bound-v2-d8d944b8-wzdgf.mail> |
Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
a7a34959 by Victor Emanouilov at 2025-09-12T10:08:50+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/a7a34959bd597b017ce2d73a352e026d36ce0334
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a7a34959bd597b017ce2d73a352e026d36ce0334
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