Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanta94 committed Feb 7, 2025
1 parent 1d6b194 commit 662fec8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tribe/Ticket_Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ class_exists( 'Tribe__Events__Timezones' )
) {
try {
$timezone_string = Tribe__Events__Timezones::get_event_timezone_string( $this->get_event_id() );

$this->event_timezone = new DateTimeZone( $timezone_string );
} catch ( Exception $exception ) {
$this->event_timezone = 'UTC+0' === $timezone_string ? new DateTimeZone( 'UTC' ) : null;
Expand Down

0 comments on commit 662fec8

Please sign in to comment.