Fix comment updated datetime
This commit is contained in:
parent
bf5cccf685
commit
734235b500
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class Comment {
|
||||||
|
|
||||||
$updated = \get_comment_meta( $wp_comment->comment_ID, 'ap_last_modified', true );
|
$updated = \get_comment_meta( $wp_comment->comment_ID, 'ap_last_modified', true );
|
||||||
if ( $updated > $published ) {
|
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() );
|
$object->set_attributed_to( $this->get_attributed_to() );
|
||||||
|
|
Loading…
Reference in a new issue