Wednesday 4 December 2013

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.


Website showing the following error :

Warning: date() [function.date]: 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 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /home/username/public_html/../../flexycms_core/libs/smarty/plugins/prefilter.tpl_labels.php on line17


Add the following code at the end of the /home/quickpri/public_html/../../flexycms_core/libs/smarty/plugins/prefilter.tpl_labels.php file :

<?php
$timezone = "Asia/Calcutta";
if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone);
echo date('d-m-Y H:i:s');
?>

No comments:

Post a Comment

ERR_CONTENT_DECODING_FAILED

If you are getting the error as ERR_CONTENT_DECODING_FAILED while accessing the domain then add the below extension in php.ini  ++++++++...