Hi,
Just installed Piwik 1.7 on a CentOS server and having problems getting it to show the correct times.
I’m living in Amsterdam, my timezone is CET (or Europe/Amsterdam, Europe/Berlin for that matter).
My shell is showing the correct time:
[admin@rick ~]$ date
Sun Feb 19 12:30:00 CET 2012
A PHP file containing
<?php
echo 'Timezone: '.date_default_timezone_get().'<br/>';
echo 'Time: '.date('H:i:s').'<br />';
?>
Outputs:
Timezone: Europe/Berlin
Time: 12:30:00
PHPinfo() states:
date/time support enabled
"Olson" Timezone Database Version 2010.9
Timezone Database internal
Default timezone Europe/Berlin
All my Piwik sites are configured to use “Europe/Amsterdam” as default timezone.
The archive.php script is showing an hour earlier:
[admin@rick ~]$ date
Sun Feb 19 12:30:00 CET 2012
[admin@rick ~]$ /usr/local/bin/php piwik/misc/cron/archive.php
[2012-02-19 [b]11:30:00[/b]] [2916c537] ---------------------------
[2012-02-19 [b]11:30:00[/b]] [2916c537] INIT
(...)
To make things weirder, my Piwik stats itself are one hour ahead. ‘Visits by server time’, ‘Visitors in Real Time’ and ‘Visitor Log’ are showing visits with a time in the future.
Sun 19 Feb - [b]13:30[/b] (1 min 9s) #2 - IP: XXXXXXX
Help!