Raised This Month: $67 Target: $400
 16% 

Wrong time on Server trend graphs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WebNoob
Senior Member
Join Date: Jul 2008
Old 04-04-2014 , 00:13   Wrong time on Server trend graphs
Reply With Quote #1

Hello,

I've recently migrated my stats server to a new box, and I'm encountering a strange problem.

The new box is located in Chicago, but since all my game servers are on the east coast, I set the server's time to east coast time. All the player events are showing the correct time, but the server trend graph images are showing times that are 3 hours ahead (i.e. the time now is just past 12am, and the server trend graphs are showing the latest time stamp of 3am).

Is there a setting or some php code I need to edit to make the trend graphs reflect the correct server time?
WebNoob is offline
abr
Junior Member
Join Date: Mar 2014
Old 04-04-2014 , 02:26   Re: Wrong time on Server trend graphs
Reply With Quote #2

may be this option can help:
in admin, General Settings -> HLstatsX:CE Settings -> Daemon Settings -> If no (default), use the current time...

also, in /etc/php/apache2-php5.5/php.ini
date.timezone =

Last edited by abr; 04-04-2014 at 04:01.
abr is offline
WebNoob
Senior Member
Join Date: Jul 2008
Old 04-04-2014 , 08:56   Re: Wrong time on Server trend graphs
Reply With Quote #3

Quote:
Originally Posted by abr View Post
may be this option can help:
in admin, General Settings -> HLstatsX:CE Settings -> Daemon Settings -> If no (default), use the current time...

also, in /etc/php/apache2-php5.5/php.ini
date.timezone =
Thanks for showing me where to look!

For those interested, changing the date.timezone to "America/New_York" in the php.ini file did the trick for me. The list of supported timezones is here: https://php.net/manual/en/timezones.php
WebNoob is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:40.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode