View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 05-01-2018 , 16:26   Re: Warning: date(): It is not safe to rely on the system's timezone settings
Reply With Quote #2

According to your "warning", it appears that your hosting provider hasn't configured the timezone in their php.ini.

Sometimes you can adjust certain php.ini settings with some hosting providers, for more information about that, you need to consult your hosting provider on how to do it.

Try adding either:

Code:
ini_set("date.timezone", "Europe/Copenhagen");
or
Code:
date_default_timezone_set("Europe/Copenhagen");
somewhere in your SourceBans' config.inc.php file.

All things like the functions you are referring to, are happening at a later time, and as such, the settings "set" with one of the above lines in config.inc.php should also have effect at that stage and prevent the warning from happening.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline