From 067b799da1d24fbc97afeda35db3813a60d59082 Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Fri, 26 Jan 2024 00:53:28 +0100 Subject: [PATCH] Add time24hr method to DatePicker field to preserve compatibility with Blade form docs Closes #2270 --- src/Services/Forms/Fields/DatePicker.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Services/Forms/Fields/DatePicker.php b/src/Services/Forms/Fields/DatePicker.php index a04ff82ae..f07edf9da 100644 --- a/src/Services/Forms/Fields/DatePicker.php +++ b/src/Services/Forms/Fields/DatePicker.php @@ -86,6 +86,17 @@ public function time24h(bool $time24h = true): static return $this; } + /** + * If 24h format should be used. + * Added for docs and backwards compatibility + */ + public function time24hr(bool $time24hr = true): static + { + $this->time24Hr = $time24hr; + + return $this; + } + /** * Define a custom date format. */