Jump to content

error when loading the date column

date date function date_default_timezone_set mktime

  • Please log in to reply
1 reply to this topic

#1 johndllee



  • Members
  • Pip
  • 1 posts

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.


#2 infinito1971



  • Members
  • Pip
  • 6 posts

Posted 24 April 2015 - 01: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:

Also tagged with one or more of these keywords: date, date function, date_default_timezone_set, mktime

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users