Jump to content
  • 0

How to Remove this error in Flux CP


agentbogz

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   4
  • Joined:  04/09/12
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

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
Link to comment
Share on other sites

×
×
  • Create New...