add timezone for the events calendar
All checks were successful
All checks were successful
This commit is contained in:
parent
d7c4f5ae39
commit
4ff31c6b45
1 changed files with 11 additions and 0 deletions
|
@ -197,6 +197,17 @@ final class The_Events_Calendar extends Event {
|
|||
return $location;
|
||||
}
|
||||
|
||||
/** By default set the timezone of the WordPress site.
|
||||
*
|
||||
* This is likely to be overwritten by the actual transformer.
|
||||
*
|
||||
* @return string The timezone string of the site.
|
||||
*/
|
||||
public function get_timezone(): string {
|
||||
return $this->tribe_event->timezone;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Extend the default event transformers to_object function.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue