@math-GH opened this Issue on May 16th 2021

grafik
link: https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?idSite=1&period=day&date=yesterday&segment=&category=General_Visitors&subcategory=VisitTime_SubmenuTimes

Expected Behavior

Information, when the report was generated

Current Behavior

time unit missed (seconds, minutes, hours, days?)

Possible Solution

time unit added

Steps to Reproduce (for Bugs)

see above

Your Environment

  • Matomo Version: 4.2.1 (demo.matomo.cloud)
  • Browser: Firefox
  • Operating System: Windows 10
@Findus23 commented on May 16th 2021 Member

I'm not entirely sure why, but $this->metricsFormatter is a Piwik\Plugins\CoreVisualizations\Metrics\Formatter\Numeric here
https://github.com/matomo-org/matomo/blob/6b12f37eb630d25dffa13e315b894abda80ed5af/core/Plugin/Visualization.php#L570-L575

which returns the number as-is instead of creating a proper text.

@flamisz commented on May 19th 2021 Contributor

Some tables (like Graph) are overwriting the text-formatter:

https://github.com/matomo-org/matomo/blob/9c128ddd5a317ac42bd3e6f83d6fa8a3d5ef2519/plugins/CoreVisualizations/Visualizations/Graph.php#L89

I made a fix to use HTML-formatter when we format when a report was last updated.

This Issue was closed on May 20th 2021
Powered by GitHub Issue Mirror