mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
fix empty WordPress timezone_string option resulting in Invalid DateTime [#10]
This commit is contained in:
@@ -30,7 +30,7 @@ class EventsListWidget extends \WP_Widget {
|
||||
$locale = str_replace('_', '-', get_locale());
|
||||
$groupName = isset($options['groupName']) ? $options['groupName'] : '';
|
||||
$url = Settings::getUrl();
|
||||
$timeZone = get_option('timezone_string');
|
||||
$timeZone = wp_timezone_string();
|
||||
$isShortOffsetNameShown = Settings::isShortOffsetNameShown();
|
||||
|
||||
require dirname(__DIR__) . '/view/events-list.php';
|
||||
|
Reference in New Issue
Block a user