General > Feedback and Suggestions
Set / Correct the BeBot Time
dillinger:
Jep, the servertime is correct, I sync it every hour via a NTP client!
Now I tried to change the date.timezone in the PHP.INI to "Europe/Berlin" - No effect! The time (!time) ingame is still 2hrs less than my local time!
Khalem:
BeBot uses the php function gmdate() which reports UTC which is also the official time in Anarchy Online.
Recently however and especially for AoC people have started asking for being able to change the time zone.
This is currently not supported out of the box, but you can edit the source code yourself and change gmdate calls to date calls.
Most notably you will most likely be looking for core/Time.php which controls !time.
On a side note. BeBot reports the correct time, it just doesn't report the timezone you want it to ;)
dillinger:
I changed
--- Code: ---$output = "It is currently ".gmdate("H:i:s F j, Y");
--- End code ---
To
--- Code: ---$output = "It is currently ".date("H:i:s F j, Y");
--- End code ---
And it worked!
Thanx for your support!
Navigation
[0] Message Index
[*] Previous page
Go to full version