Opened 3 years ago

Closed 3 years ago

#2316 closed New feature (fixed)

Allow to hide hours in the future in output of API function getVisitInformationPerServerTime()

Reported by: matt Owned by:
Priority: normal Milestone: Piwik 1.3
Component: Core Keywords:
Cc: Sensitive: no

Description

This was requested as to make the 'real time' view of 'today' statistics less 'frightening', because by default piwik will show zeros for all hours in the future. WE could instead add a parameter to hide these hours, allowing to show only stats up to now.

The advantage of doing in the API is ease of use for API consumers: they don't have to do the timezone logic themselves.

Change History (2)

comment:1 Changed 3 years ago by vipsoft (robocoder)

Instead of an option to show/hide, maybe it could be a time (or maybe date/time) formatter? IIRC there was a request for 12-hour time format.

comment:2 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4480]) Fixes #2316 - Disabled by default in API for Backward compatibility, but enabled in the UI as it slightly improves readability

Note: See TracTickets for help on using tickets.