set site timezone as default in event base transformer
All checks were successful
All checks were successful
This commit is contained in:
parent
2257e86f0f
commit
d7c4f5ae39
1 changed files with 10 additions and 0 deletions
|
@ -276,6 +276,16 @@ abstract class Event extends Post {
|
||||||
return $template;
|
return $template;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 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 wp_timezone_string();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic function that converts an WP-Event object to an ActivityPub-Event object.
|
* Generic function that converts an WP-Event object to an ActivityPub-Event object.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue