diff --git a/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/event/event-date.php b/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/event/event-date.php index f5d2055032..1c70f303cc 100644 --- a/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/event/event-date.php +++ b/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/event/event-date.php @@ -62,6 +62,11 @@ public function is_in_the_past() { return $this->utc() < Translation_Events::now(); } + public function is_more_than_one_year_in_the_future(): bool { + $now = Translation_Events::now(); + return $this->utc() > $now->modify( '+1 year' ); + } + public function print_relative_time_html() { echo wp_kses( '