Skip to content

Exception: DateTimeZone::__construct()

В журнале каждые вечер появляется ошибка. Скажите пожалуйста, что на сервере нужно подкорректировать ?

 

 Exception: DateTimeZone::__construct(): Unknown or bad timezone () (0) 
#0 /var/www//data/www//forum/system/Member/Member.php(949): DateTimeZone->__construct('') 
#1 /var/www//data/www//forum/system/Theme/Theme.php(694) : eval()'d code(279): IPS\_Member->age() 
#2 [internal function]: IPS\Theme\class_calendar_front_widgets->todaysBirthdays(Array, 'vertical') 
#3 /var/www//data/www//forum/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array)  

Featured Replies

У кого-то пользователя по какойто причине пустая временная зона.

Можно попробовать пофиксить установка временной зоны из пустой куки.

 

/system/Member/Member.php

 

isset( \IPS\Request::i()->cookie['ipsTimezone'] )

Заменить на

 

!empty( \IPS\Request::i()->cookie['ipsTimezone'] )

  • Author

Спасиб

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.