Skip to content

Commit

Permalink
#147 [Lib] fix: check on isDayAvailable require date format UTC and gmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Feb 6, 2023
1 parent 4c17159 commit 722481d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dolisirh_function.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function isDayAvailable($date, $userid)

$statusofholidaytocheck = Holiday::STATUS_APPROVED;

$date = dol_stringtotime(dol_print_date($date, 'standard'));
$is_available_for_user = $holiday->verifDateHolidayForTimestamp($userid, $date, $statusofholidaytocheck);
$is_public_holiday = num_public_holiday($date, dol_time_plus_duree($date, 1,'d'));

Expand Down

0 comments on commit 722481d

Please sign in to comment.