Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTRIA-2100/missing timezone parameter #2007

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
== Changelog ==

= [TBD] TBD =

* Fix - Correct `tribe_get_end_date` to return dates in the correct time zone. [BTRIA-2100]

= [5.1.15.2] 2023-12-04 =

* Fix - Ensure correct access rights to JSON-LD data depending on the user role. [TEC-4995]
Expand Down
2 changes: 1 addition & 1 deletion src/functions/template-tags/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function tribe_get_end_date( $event = null, $display_time = true, $date_format =

// @todo [BTRIA-584]: Move timezones to Common.
if ( class_exists( 'Tribe__Events__Timezones' ) ) {
$end_date = Tribe__Events__Timezones::event_end_timestamp( $event->ID );
$end_date = Tribe__Events__Timezones::event_end_timestamp( $event->ID, $timezone );
Camwyn marked this conversation as resolved.
Show resolved Hide resolved
Camwyn marked this conversation as resolved.
Show resolved Hide resolved
} else {
return null;
}
Expand Down
Loading