Statistics graph date and label differ by one day

We run OJS 3.5.0.5, PHP 8.4, and have set date.timezone and time_zone both Europe/Stockholm, date_format_long = "F j, Y"

Stats publications timeline endpoint returns date and label consistently off by one day, every entry, whole range.

The underlying metrics_submission rows are correct — the difference is in the presentation only

Example: {date: "2026-08-01", label: "July 31, 2026", value: "33"}

@bozana - might you be able to speak to this?

-Roger
PKP Team

That problem exists since a long time - since the stats had been introduced in OJS 3.x

Hi all, yes, we have this issue Journal's date format is not used on stats page · Issue #7889 · pkp/pkp-lib · GitHub and I will come to it as soon as possible. Sorry :frowning:

EDIT: somehow I think a similar issue was opened receantly but I cannot find it now… :face_with_monocle:

Wrong translation between actual date of data point in statistics views and date label · Issue #10813 · pkp/pkp-lib · GitHub which I opened early 2025. There is even a pull request for a fix by another developer.

Thanks a lot @mpbraendle, that is the one I was searching for! :slight_smile: