Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Feb 11, 2024
1 parent e3edf8b commit b5b4779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/kernel/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function time(string $format = null) {
// Else…
} else {
$time = $this->offsetGet('time') ?? parent::time();
if (\is_object($time) && $time instanceof \DateTime) {
if (\is_object($time) && $time instanceof \DateTimeInterface) {
$time = $time->format('Y-m-d H:i:s');
}
$time = new Time($time);
Expand Down

0 comments on commit b5b4779

Please sign in to comment.