aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2025-09-05 10:29:16 +0000
committerMoritz Strohm <strohm@data-quest.de>2025-09-05 10:29:16 +0000
commitf76a48ed99c467e715aa9d43ea01ca16dd42f564 (patch)
tree492666b4f1fe826e945040cfccc75133d79bf3a2
parenta670a0a6fc7c5f6401342e0bc092bec2f8d6de29 (diff)
TimedFolder: add 59 seconds to the end of the time range, fixes #5874
Closes #5874 Merge request studip/studip!4477
-rw-r--r--lib/filesystem/TimedFolder.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/filesystem/TimedFolder.php b/lib/filesystem/TimedFolder.php
index 0c159d6..255c49c 100644
--- a/lib/filesystem/TimedFolder.php
+++ b/lib/filesystem/TimedFolder.php
@@ -185,6 +185,10 @@ class TimedFolder extends PermissionEnabledFolder
$this->folderdata['data_content']['permission'] = $permvalue;
$start = strtotime($request['start_time']);
$end = strtotime($request['end_time']);
+ if (date('i', $end) === '59') {
+ //Add 59 seconds to $end to get to the last second of the minute:
+ $end += 59;
+ }
if (!$start && !$end) {