TinyAnalytics
TinyAnalytics copied to clipboard
Timezone issue
trafficstars
On my server (PHP 5.5.9-1ubuntu4.7) :
-
adding
tracker.phpat the end of aindex.phpthat doesn't call date_default_timezone_set results in local-server-timezone fordate -
adding
tracker.phpat the end of aindex.phpthat does call date_default_timezone_set (e.g. in a Wordpress site) results in using UTC-timezone fordate
Related topic: http://stackoverflow.com/questions/41603688/get-time-with-local-servers-timezone-after-a-date-default-timezone-set-call
Now half done thanks to last commits.
Second half to do: when displaying charts, JavaScript uses client-side date/time and this can differ from server-side date/time. Todo: server should send dates to client here.