From 734235b500d23e0a1c78d480f29d1b92a0fb96ee Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Mon, 2 Oct 2023 09:26:16 -0700 Subject: [PATCH] Fix comment updated datetime --- includes/transformer/class-comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/transformer/class-comment.php b/includes/transformer/class-comment.php index 224b177..858d58b 100644 --- a/includes/transformer/class-comment.php +++ b/includes/transformer/class-comment.php @@ -75,7 +75,7 @@ class Comment { $updated = \get_comment_meta( $wp_comment->comment_ID, 'ap_last_modified', true ); if ( $updated > $published ) { - $object->set_updated( \gmdate( 'Y-m-d\TH:i:s\Z', $updated ) ); + $object->set_updated( \gmdate( 'Y-m-d\TH:i:s\Z', \strtotime( $updated ) ) ); } $object->set_attributed_to( $this->get_attributed_to() );