Sate and Time Answered

1

The following message appears everytime i login. My website is www.yulistore.com


DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. code 0

## wa-system/waSystem.class.php(552)

#0 index.php(7): waSystem->dispatch()

#1 {main}


Next Exception with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.':

## wa-system/datetime/waDateTime.class.php(286)

#0 wa-system/datetime/waDateTime.class.php(286): DateTime->__construct('2019-06-01 21:2...')

#1 wa-cache/apps/webasyst/templates/compiled/webasyst_en_US/f5/85/48/f5854814508ad4ec8ca5febfc6e69178b11e3cf4.file.BackendDashboard.html.php(313): waDateTime::format('humandatetime', '2019-06-01 21:2...')

#2 wa-cache/apps/webasyst/templates/compiled/webasyst_en_US/f5/85/48/f5854814508ad4ec8ca5febfc6e69178b11e3cf4.file.BackendDashboard.html.php(143): content_5c28cc121b5f27_63498468(Object(Smarty_Internal_Template))

#3 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(184): content_5c28cc12323508_64426116(Object(Smarty_Internal_Template))

#4 wa-system/view/waSmarty3View.class.php(118): Smarty_Internal_TemplateBase->fetch('templates/actio...', NULL)

#5 wa-system/controller/waViewActions.class.php(166): waSmarty3View->fetch('templates/actio...')

#6 wa-system/controller/waViewActions.class.php(95): waViewActions->display()

#7 wa-system/controller/waFrontController.class.php(254): waViewActions->run(NULL)

#8 wa-system/controller/waFrontController.class.php(189): waFrontController->runController(Object(webasystBackendActions), NULL)

#9 wa-system/controller/waFrontController.class.php(83): waFrontController->execute(NULL, 'backend', NULL)

#10 wa-system/waSystem.class.php(615): waFrontController->dispatch()

#11 wa-system/waSystem.class.php(538): waSystem->dispatchBackend('webasyst/')

#12 index.php(7): waSystem->dispatch()

#13 {main}

GET

array()

Params

array()

1 comment

  • +1
    Алексей Алексей Webasyst July 10, 2019 18:20 #

    Method A

    Edit .htaccess in root folder of the framework to add new string

    php_value date.timezone 'Europe/Moscow'

    Method B

    Edit file wa-config/SystemConfig.class.php after tag

    <?php

    add text

    date_default_timezone_set('Europe/Moscow');

    More information could be found in PHP documentation

    Add comment

    To add a comment please sign up or login