From 561a3755274f36faff341761162cf32ecbf5c550 Mon Sep 17 00:00:00 2001 From: Tom Broucke Date: Thu, 14 Dec 2023 16:02:17 +0100 Subject: [PATCH] format time --- src/DatePicker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DatePicker.php b/src/DatePicker.php index 60958d8..a9ae86c 100644 --- a/src/DatePicker.php +++ b/src/DatePicker.php @@ -45,6 +45,6 @@ public function dateTime() : bool|DateTime public function __toString() : string { - return $this->format(get_option('date_format')); + return date_i18n(get_option('date_format'), $this->getTimestamp()); } }