Skip to content

Commit

Permalink
Add time24hr method to DatePicker field to preserve compatibility wit…
Browse files Browse the repository at this point in the history
…h Blade form docs

Closes area17#2270
  • Loading branch information
ifox committed Jan 25, 2024
1 parent 854b5af commit 067b799
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Services/Forms/Fields/DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 067b799

Please sign in to comment.