If you are stuck with this error here is the workaround for the same.
You have to tell PHP what your system time zone is. You can edit your php.ini file and put your timezone (Use whatever timezone is appropriate for you)in front of date.timezone parameter as shown below.
Edit the php.ini file using vi Editor and search for date.timezone
If you are facing this same issue on WORDPRESS SITE and if you don’t have access to the php.ini, adding this to the top of the wp-config.php file will do much the same thing: