@mattab opened this Issue on October 22nd 2015 Member

follows up https://github.com/piwik/piwik/pull/9075

Currently, datetime is displayed in UTC.

It would be better to display the datetime in the website timezone, as it can get confusing otherwise:

  • when I'm looking at 2014 data, it says "Report generated on Dec 31st 2014 (UTC)" which is confusing (it was generated on Jan 1st 2015 in the website timezone)
@mattab commented on October 22nd 2015 Member

Example of what it looks like in Piwik 2.15.0:

2015

@tsteur commented on October 26th 2015 Member

I think ideally it would always say something like 1 hour ago, 10 minutes ago, 1 month 10 days ago, 1 year ago. On hover, if needed, it could say Jan 01 2015 00:04:01 in the website's timezone UTC+8, which is ... in your timezone (and ideally we would also show it in users current timezone when it is different).

Showing a date here is not really helpful, especially when UTC is different than the websites timezone which might be again different of the users timezone. One never knows which one is used and even when you know it, you have to do the math to convert it to your timezone etc.

With JavaScript we could update the time when hovering... eg by having a timestamp in the HTML attribute or so. This could be an angular directive. Whenever hovering it, it would update the time and say eg "5 minutes ago", then 5 minutes later when hovering again say "10 minutes ago"

Powered by GitHub Issue Mirror