I am freshgraduate who get new job as developer need your help.
so in my website company has trouble not show week in a years on that form (see the picture). There is logs error on cpanel
mod_fcgid: stderr: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php56) is not within the allowed path(s): (/var/www/vhosts/xxx.co.id/:/tmp/) in Unknown on line 0, referer: https://www.xxx.co.id/jakarta/modules/presensi2/tambahShift.php
Uncaught exception '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.' in /var/www/vhosts/myweb/public_html/presensi2/tambahShift.php:22, referer: myweb//presensi2/tambahShift.php"
on the line 22 is $data=new DataTime;
what should I do first? Thanks FYI : this website use PHP 5.4.16 version