Skip to content
Snippets Groups Projects
Commit 7187ae62 authored by Moritz Strohm's avatar Moritz Strohm Committed by Elmar Ludwig
Browse files

resources/room_request/resolve: fixed preparation time inconsitencies, closes #859

Closes #859

Merge request studip/studip!942
parent 52e91615
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,15 @@
<?= implode('<br>', $dates) ?>
<? endif ?>
</dd>
<? if ($request->preparation_time) : ?>
<dt><?= _('Rüstzeit') ?></dt>
<dd>
<?= htmlReady(sprintf(
ngettext('%d Minute', '%d Minuten', $request->preparation_time / 60),
$request->preparation_time / 60
)) ?>
</dd>
<? endif ?>
<? if ($room_request->preparation_time): ?>
<? $preparation_time_minutes = intval($room_request->preparation_time / 60) ?>
......@@ -250,10 +259,10 @@
<? if ($data['metadate'] instanceof SeminarCycleDate) : ?>
<?php
$date_string1 = getWeekday($data['metadate']->weekday);
$real_begin = mktime($data['metadate']->start_hour, $data['metadate']->start_minute - $request->preparation_time / 60);
$date_string2 = sprintf(
'%02s:%02s - %02s:%02s',
$data['metadate']->start_hour,
$data['metadate']->start_minute,
'%s - %02s:%02s',
date('H:i', $real_begin),
$data['metadate']->end_hour,
$data['metadate']->end_minute
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment