From d054378a63cffdfaf151587f6087ab7e054a2e94 Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 16 Apr 2021 18:03:54 +0200 Subject: [PATCH] add datetime picker to admin shifts page --- includes/pages/admin_shifts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php index b57f7f1a..0e0df1c6 100644 --- a/includes/pages/admin_shifts.php +++ b/includes/pages/admin_shifts.php @@ -418,8 +418,8 @@ function admin_shifts() form_select('rid', __('Room'), $room_array, $rid), div('row', [ div('col-md-6', [ - form_text('start', __('Start'), date('Y-m-d H:i', $start)), - form_text('end', __('End'), date('Y-m-d H:i', $end)), + form_datetime('start', __('Start'), $start), + form_datetime('end', __('End'), $end), form_info(__('Mode'), ''), form_radio('mode', __('Create one shift'), $mode == 'single', 'single'), form_radio('mode', __('Create multiple shifts'), $mode == 'multi', 'multi'),