⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

error when loading the date column



johndllee
  • profile picture
  • Member

Posted 16 October 2014 - 01:24 AM

Hi all,
I test my website which build in grocery crud running in remote centos 6.4 server but when loading the database, it shows this error:
 
Severity: Warning
Message: mktime(): 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/Manila' for 'PHT/8.0/no DST' instead
 
Filename: libraries/Grocery_CRUD.php
 
Line Number: 284
 
The value in Default timezone = Asia/Manila. I change this value to UTC in php.ini but it did not change the default value.
Is there a way to change the date function on the libraries/Grocery_CRUD.php file?
PHP 5.3.3. is the current version in centos 6.4 server.
Thanks in advance.

 


infinito1971
  • profile picture
  • Member

Posted 24 April 2015 - 13:35 PM

Hi johndllee,
to solve this problem, you may add as first row of change_list_value method in Grocery_CRUD.php file the following line:
 
date_default_timezone_set('Asia/Manila');
 
 
Bye,
infinito1971