Viewing 2 replies - 1 through 2 (of 2 total)
  • I know this may be a bit late, but here goes…

    I had the same (or a similar) problem with Statrix. The timestamps were correct and inserted in the database accordingly. The problem was in the admin panel when I was (over)viewing the hits – they were all in UTC and the delay was like double of the time between UTC and my local time (EET in my case).

    What fixed for me was editing the “Filter.php” script in the “statrix/includes” folder. So, inside the protected function setTimePeriod($defaultPeriod) (it starts at line 57 in v0.6), just before the first if or between the first if and the following switch (this place is somewhere around line 64) insert the following line of code:

    date_default_timezone_set(‘YOUR_TIME_ZONE’);

    where YOUR_TIME_ZONE is the time zone (abbreviation) of your… well… time zone :). For example, mine is EET so I’ve set it to:

    date_default_timezone_set(‘EET’);

    I’m not sure u have exactly the same problem as I did or if this will work for you but you can try it. Good luck!

    LE: you can find your time zone (if you don’t know it already) HERE

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Statrix] Time and Date’ is closed to new replies.