View Single Post
SourceMod Moderator
Join Date: Apr 2012
Old 05-01-2018 , 17: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:

ini_set("date.timezone", "Europe/Copenhagen");
somewhere in your SourceBans' 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 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