Skip to content

Commit

Permalink
format time
Browse files Browse the repository at this point in the history
  • Loading branch information
tombroucke committed Dec 14, 2023
1 parent 290a123 commit 561a375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 561a375

Please sign in to comment.