Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive.php should log in the system timezone. #3029

Closed
anonymous-matomo-user opened this issue Mar 9, 2012 · 9 comments
Closed

Archive.php should log in the system timezone. #3029

anonymous-matomo-user opened this issue Mar 9, 2012 · 9 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

All other logs are using the system timezone (syslog, nginx, php, etc...). Having piwik logging in its own timezone makes things difficult to debug.
Keywords: timezone archive

@mattab
Copy link
Member

mattab commented Mar 9, 2012

It logs in UTC. it is best practise to log in UTC.

@anonymous-matomo-user
Copy link
Author

it is best practise to log in UTC.

My point is that all other programs running with piwik are using the system timezone. Thus the best practice does not seem to be pure UTC.

I won't reopen it, you are the boss ;) But as a sysadmin currently working with various log files, I feel like it is a bug. I'll try to find some time to add this option to the archive script.

@mattab
Copy link
Member

mattab commented Mar 15, 2012

I hear your feedback, thanks for insisting. It should be a feature request at least (and maybe will be implemented earlier)

@gaumondp
Copy link

I was about to open a bug ticket about this.

At least it looks like a bug...

Who doesn't like consistency ?

Make it a feature of 2.0 please.

Dali

@mattab
Copy link
Member

mattab commented Feb 1, 2014

Maybe this could be an option... but I will not implement myself as I like UTC times. A pull request may be accepted though!

@gaydenko
Copy link

I"m the next voting the suggestion. Logs are something presented for people :) Logic and presentation are separate concerns, I guess...

@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@valmiRe
Copy link

valmiRe commented Jan 4, 2016

Hi all, I was wondering if there is a problem with the archive process mixing UTC and local timezone.
My timezone is UTC+1, the process logs in UTC, but the last line below is confusing, it mixes UTC (13:18:38) and local timezone (14:30:02)

logs extract of 2 last core:archive runs :

[....]
INFO [2016-01-04 13:18:38] done
INFO [2016-01-04 13:18:38] ---------------------------
INFO [2016-01-04 13:30:01] ---------------------------
INFO [2016-01-04 13:30:01] INIT
INFO [2016-01-04 13:30:01] Running Piwik 2.15.0 as Super User
[....]
INFO [2016-01-04 13:30:02] START
INFO [2016-01-04 13:30:02] Starting Piwik reports archiving...
INFO [2016-01-04 13:30:02] - tracking data found for website id 1 (between 2016-01-04 13:18:38 and 2016-01-04 14:30:02)

@mattab
Copy link
Member

mattab commented Jan 27, 2016

HI @valmiRe could you please create a separate issue for this bug?

@valmiRe
Copy link

valmiRe commented Jan 28, 2016

hi @mattab, it's done here #9653

@mattab mattab closed this as completed Feb 19, 2016
@mattab mattab added the wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. label Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

5 participants