From 1b3781cb2f38e6e8288447dff06ab94c4007824f Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 25 Jul 2019 19:02:08 +0200 Subject: format admin_arrive dates accordingly as in user list --- includes/pages/admin_arrive.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes/pages') diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php index f05b42cf..7a11f3ab 100644 --- a/includes/pages/admin_arrive.php +++ b/includes/pages/admin_arrive.php @@ -95,10 +95,10 @@ function admin_arrive() $plannedDepartureDate = $usr->personalData->planned_departure_date; $arrivalDate = $usr->state->arrival_date; $plannedArrivalDate = $usr->personalData->planned_arrival_date; - $usr['rendered_planned_departure_date'] = $plannedDepartureDate ? $plannedDepartureDate->format('Y-m-d') : '-'; - $usr['rendered_planned_arrival_date'] = $plannedArrivalDate ? $plannedArrivalDate->format('Y-m-d') : '-'; - $usr['rendered_arrival_date'] = $arrivalDate ? $arrivalDate->format('Y-m-d') : '-'; - $usr['arrived'] = $usr->state->arrived ? __('yes') : ''; + $usr['rendered_planned_departure_date'] = $plannedDepartureDate ? $plannedDepartureDate->format(__('Y-m-d')) : '-'; + $usr['rendered_planned_arrival_date'] = $plannedArrivalDate ? $plannedArrivalDate->format(__('Y-m-d')) : '-'; + $usr['rendered_arrival_date'] = $arrivalDate ? $arrivalDate->format(__('Y-m-d')) : '-'; + $usr['arrived'] = glyph_bool($usr->state->arrived); $usr['actions'] = form([ form_hidden('action', $usr->state->arrived ? 'reset' : 'arrived'), form_hidden('user', $usr->id), -- cgit v1.2.3-70-g09d2