change date format in shift table

fixes #202
This commit is contained in:
Felix Favre 2015-08-26 15:03:53 +02:00
parent e4bd324801
commit 73208016bf
1 changed files with 120 additions and 120 deletions

View File

@ -210,7 +210,7 @@ function user_shifts() {
if ($result === false) if ($result === false)
engelsystem_error('Unable to delete shift.'); engelsystem_error('Unable to delete shift.');
engelsystem_log("Deleted shift " . $shift['name'] . " from " . date("y-m-d H:i", $shift['start']) . " to " . date("y-m-d H:i", $shift['end'])); engelsystem_log("Deleted shift " . $shift['name'] . " from " . date("Y-m-d H:i", $shift['start']) . " to " . date("Y-m-d H:i", $shift['end']));
success(_("Shift deleted.")); success(_("Shift deleted."));
redirect(page_link_to('user_shifts')); redirect(page_link_to('user_shifts'));
} }
@ -568,7 +568,7 @@ function view_user_shifts() {
'RID' => $room['id'], 'RID' => $room['id'],
'Name' => $room['name'] 'Name' => $room['name']
]) . '<br />'; ]) . '<br />';
$shifts_row .= '<a href="' . shift_link($shift) . '">' . date('d.m. H:i', $shift['start']); $shifts_row .= '<a href="' . shift_link($shift) . '">' . date('Y-m-d H:i', $shift['start']);
$shifts_row .= " &ndash; "; $shifts_row .= " &ndash; ";
$shifts_row .= date('H:i', $shift['end']); $shifts_row .= date('H:i', $shift['end']);
$shifts_row .= "<br /><b>"; $shifts_row .= "<br /><b>";