From 1a5e19f3c1f8573dc1b80fbbb6ebb9dbeadc7073 Mon Sep 17 00:00:00 2001 From: ruru4143 Date: Mon, 30 Sep 2024 19:24:32 +0200 Subject: [PATCH] added comment --- includes/activitypub/transformer/class-event.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/activitypub/transformer/class-event.php b/includes/activitypub/transformer/class-event.php index 4786bd8..82f6bbd 100644 --- a/includes/activitypub/transformer/class-event.php +++ b/includes/activitypub/transformer/class-event.php @@ -305,6 +305,8 @@ abstract class Event extends Post { $activitypub_object = new Event_Object(); $activitypub_object = $this->transform_object_properties( $activitypub_object ); + // maybe move the following logic (till end of the function) into getter functions. + $published = \strtotime( $this->wp_object->post_date_gmt ); $activitypub_object->set_published( \gmdate( 'Y-m-d\TH:i:s\Z', $published ) );