Jump to content
  • 0

How to Remove this error in Flux CP


Question

Posted (edited)

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 'Asia/Hong_Kong' for 'HKT/8.0/no DST' instead in /usr/html/cp/lib/Flux/Connection/Statement.php on line 14

post-3777-0-40981600-1336228078_thumb.png

Edited by agentbogz

1 answer to this question

Recommended Posts

Posted (edited)

Hi agentbogz,

Go to '/config/application.php' and find the following...

'DateDefaultTimezone' => null,

Modify it to...

'DateDefaultTimezone' => 'Asia/Hong_Kong',

Now open up '/config/servers.php' and find the 3 lines...

'Timezone' => null // Example: '+0:00' is UTC.

'Timezone' => null // Possible values is as described in the comment in DbConfig.
'DateTimezone' => null, // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)

Modify those 3 values to...

'Timezone' => 'Asia/Hong_Kong' // Example: '+0:00' is UTC.

'Timezone' => 'Asia/Hong_Kong' // Possible values is as described in the comment in DbConfig.
'DateTimezone' => 'Asia/Hong_Kong', // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
Edited by Asura
  • Upvote 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...