matomo-org/matomo

Email Report files alphabetical order should work in all languages, by eg "Report for URL Website - YYYY-MM-DD to YYYY-MM-D2 - $Translated_Date_string"

Open

#19.122 geöffnet am 19. Apr. 2022

Auf GitHub ansehen
 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)PHP (21.513 Stars) (2.847 Forks)batch import
EnhancementHelp wantedc: Consistent Reports & Analytics UXc: Email Reportsc: i18n

Beschreibung

A user suggests the following:

Is there a way to fix the filenames for emailed PDF reports? Matomo defaults to the file name of (for example) "Report abc Website - March 18 - April 16, 2022.pdf" but this makes it impossible to list reports chronologically when they are in alphabetical order.

If archiving PDF reports from Matomo, the problem is severe enough that I would classify it as a bug.

Matomo should be using international ISO 8601 dates by default, i.e. "Report for abc Website - 2022-03-18 to 2022-04-16.pdf". Using "Year-Month-Day" allows sorting the archived PDF files chronologically in alphabetical order. The ability to generate custom report titles (such as "Report for abc Website" instead of "Report abc Website") is a much-needed feature for Matomo.

EDIT from matt: proposed to use Report for URL Website - YYYY-MM-DD to YYYY-MM-D2 - $Translated_Date_string so we still have the nice date, but first have the ISO date.

Contributor Guide