Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Атаман

Exception: DateTimeZone::__construct()

Recommended Posts

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

 

 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)  

Share this post


Link to post
Share on other sites

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

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

 

/system/Member/Member.php

 

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

Заменить на

 

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

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...