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 创建于 2022年4月19日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)PHP (21,513 star) (2,847 fork)batch import
EnhancementHelp wantedc: Consistent Reports & Analytics UXc: Email Reportsc: i18n

描述

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.

贡献者指南