#32: show dates in europe berlin timezone
This commit is contained in:
parent
219561c5ae
commit
7e53705b4b
3 changed files with 5 additions and 4 deletions
|
@ -23,6 +23,7 @@ final class FoodOrderType extends AbstractType
|
||||||
])
|
])
|
||||||
->add(child: 'closedAt', options: [
|
->add(child: 'closedAt', options: [
|
||||||
'label' => 'closes at',
|
'label' => 'closes at',
|
||||||
|
'view_timezone' => 'Europe/Berlin',
|
||||||
])
|
])
|
||||||
->add(child: 'createdBy')
|
->add(child: 'createdBy')
|
||||||
;
|
;
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>CreatedAt</th>
|
<th>CreatedAt</th>
|
||||||
<td>{{ food_order.createdAt ? food_order.createdAt|date('Y-m-d H:i:s') : '' }}</td>
|
<td>{{ food_order.createdAt ? food_order.createdAt|date('Y-m-d H:i:s', 'Europe/Berlin') : '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ClosedAt</th>
|
<th>ClosedAt</th>
|
||||||
<td>{{ food_order.closedAt ? food_order.closedAt|date('Y-m-d H:i:s') : '' }}</td>
|
<td>{{ food_order.closedAt ? food_order.closedAt|date('Y-m-d H:i:s', 'Europe/Berlin') : '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ food_order.createdBy }}</td>
|
<td>{{ food_order.createdBy }}</td>
|
||||||
<td>{{ food_order.foodVendor.name }}</td>
|
<td>{{ food_order.foodVendor.name }}</td>
|
||||||
<td>{{ food_order.createdAt ? food_order.createdAt|date('Y-m-d H:i:s') : '' }}</td>
|
<td>{{ food_order.createdAt ? food_order.createdAt|date('Y-m-d H:i:s', 'Europe/Berlin') : '' }}</td>
|
||||||
<td>{{ food_order.closedAt ? food_order.closedAt|date('Y-m-d H:i:s') : '' }}</td>
|
<td>{{ food_order.closedAt ? food_order.closedAt|date('Y-m-d H:i:s', 'Europe/Berlin') : '' }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ path('app_food_order_show', {'id': food_order.id}) }}">show</a>
|
<a href="{{ path('app_food_order_show', {'id': food_order.id}) }}">show</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue