aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2025-09-10 11:19:36 +0000
committerMoritz Strohm <strohm@data-quest.de>2025-09-10 11:19:36 +0000
commit512b79dfc37afe72d22ede92b10070ab5491e92a (patch)
treebb6c9e010579d40cadde6f1ebbde0f96fc1d6610 /templates
parentf7d4cc67f9c2c8e24e2ea16babb47216c5387b2d (diff)
TimedFolder: added one minute of time in the checks in isVisible, isReadable and isWritable, really fixes #5874
Closes #5874 Merge request studip/studip!4482 (cherry picked from commit cc9dbbccb76f32066f153b7635193cbd07efdd16) ee2f0ac6 removed first solution for the BIESt 640a819c TimedFolder: added one minute of time in the checks in isVisible, isReadable and isWritable 86b9a1dd changed display of start and end time in timed folder description Co-authored-by: Moritz Strohm <strohm@data-quest.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/filesystem/timed_folder/description.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/filesystem/timed_folder/description.php b/templates/filesystem/timed_folder/description.php
index 396a286..9142175 100644
--- a/templates/filesystem/timed_folder/description.php
+++ b/templates/filesystem/timed_folder/description.php
@@ -5,20 +5,20 @@
<? if ($folder->start_time && !$folder->end_time) : ?>
<strong>
<?= sprintf(_('Sichtbar ab %s'),
- strftime('%x %X', $folder->start_time)) ?>
+ date('d.m.Y H:i', $folder->start_time)) ?>
</strong>
<br>
<? elseif (!$folder->start_time && $folder->end_time) : ?>
<strong>
<?= sprintf(_('Sichtbar bis %s'),
- strftime('%x %X', $folder->end_time)) ?>
+ date('d.m.Y H:i', $folder->end_time)) ?>
</strong>
<br>
<? elseif ($folder->start_time && $folder->end_time) : ?>
<strong>
<?= sprintf(_('Sichtbar von %s bis %s'),
- strftime('%x %X', $folder->start_time),
- strftime('%x %X', $folder->end_time)) ?>
+ date('d.m.Y H:i', $folder->start_time),
+ date('d.m.Y H:i', $folder->end_time)) ?>
</strong>
<br>
<? endif ?>