[resolved] strtotime() date() with PHP 5.5+

Discuss MySQL Ajax Table Editor Paid Version

[resolved] strtotime() date() with PHP 5.5+

Postby ar.richter » Sat Jul 11, 2015 1:01 pm

Hi everyone,
the paid version of mysqlajaxtableeditor does not seem to work seamlessly with the newest versions of PHP if the php.ini does not set a time zone. The following warning occurs:

Code: Select all
Invalid json sent back from server. Error: SyntaxError: Unexpected token < Server sent:

Warning: strtotime(): 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 [...]/php/AjaxTableEditor.php on line 1596

Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone in [...]/php/AjaxTableEditor.php on line 1599


The easiest way to resolve this is by editing the AjaxTableEditor.php to match the following:
Code: Select all
public function setDefaults()
{
      // Setting time zone
      date_default_timezone_set('GMT');
      [...]
}


Cheers
ar.richter
 
Posts: 3
Joined: Sat Jul 11, 2015 12:51 pm

Return to Paid Version

Who is online

Users browsing this forum: No registered users and 1 guest

cron