Commit 3b32a99 1 parent 4e30cb8 commit 3b32a99 Copy full SHA for 3b32a99
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ public function render() {
157
157
$ date_field_type = $ date_field_definition ->getType ();
158
158
159
159
$ events = [];
160
- $ user_timezone = \drupal_get_user_timezone ();
160
+ $ user_timezone = date_default_timezone_get ();
161
161
162
162
// Make sure the events are made as per the configuration in view.
163
163
/** @var string $timezone_override */
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function views_ical_preprocess_views_view_ical(&$variables) {
28
28
$variables['title'] = $title;
29
29
30
30
$calendar = new Calendar('-//Drupal iCal API//EN');
31
- $user_timezone = \drupal_get_user_timezone ();
31
+ $user_timezone = date_default_timezone_get ();
32
32
33
33
/** @var string $user_timezone */
34
34
$v_timezone = new Timezone($user_timezone);
You can’t perform that action at this time.
0 commit comments