From f18cde8b0ff20cc47528a52fa57f4b0f7b402eb9 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 23 Feb 2023 14:22:00 +0100 Subject: [PATCH] fix: [authkey:add] Forced `expiration` field to use datetime UI component Fix #145 --- templates/AuthKeys/add.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/AuthKeys/add.php b/templates/AuthKeys/add.php index c9f0219..4c829ec 100644 --- a/templates/AuthKeys/add.php +++ b/templates/AuthKeys/add.php @@ -14,7 +14,8 @@ echo $this->element('genericElements/Form/genericForm', [ ], [ 'field' => 'expiration', - 'label' => 'Expiration' + 'label' => __('Expiration'), + 'type' => 'datetime', ] ], 'submit' => [