Skip to content

Commit 3b32a99

Browse files
committed
remove deprecated functions.
1 parent 4e30cb8 commit 3b32a99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Plugin/views/style/Ical.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function render() {
157157
$date_field_type = $date_field_definition->getType();
158158

159159
$events = [];
160-
$user_timezone = \drupal_get_user_timezone();
160+
$user_timezone = date_default_timezone_get();
161161

162162
// Make sure the events are made as per the configuration in view.
163163
/** @var string $timezone_override */

views_ical.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function views_ical_preprocess_views_view_ical(&$variables) {
2828
$variables['title'] = $title;
2929

3030
$calendar = new Calendar('-//Drupal iCal API//EN');
31-
$user_timezone = \drupal_get_user_timezone();
31+
$user_timezone = date_default_timezone_get();
3232

3333
/** @var string $user_timezone */
3434
$v_timezone = new Timezone($user_timezone);

0 commit comments

Comments
 (0)