diff --git a/includes/transformer/class-base.php b/includes/transformer/class-base.php index 4f626a0..b5fec37 100644 --- a/includes/transformer/class-base.php +++ b/includes/transformer/class-base.php @@ -121,6 +121,9 @@ abstract class Base { // todo renmae to Base_tranformer */ public function get_post_meta_time( string $key ) { $time = $this->get_post_meta( $key, true ); // todo what if not exists + if ( null === $time ) { + return null; + } $time = \strtotime( $time ); return \gmdate( $this->timeformat, $time ); }