analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Last 7 days with hourly resolution doesn't include today

Open ArniPL opened this issue 1 year ago • 5 comments

Past Issues Searched

  • [X] I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • [X] This is a bug report and not a feature request, nor asking for self-hosted support

Using official Plausible Cloud hosting or self-hosting?

Self-hosting

Describe the bug

Currently, when in "last 7 days" period and "days" resolution, you can see that the current day is incomplete and displays a dotted line on the graph:

image

But when we switch to "hours" resolution, current day disappears and the graph shows only 6 days. This makes it impossible to for example to compare today's traffic with same day last week.

image

Expected behavior

The "last 7 days" period in "hours" resolution should display all data up until this hour when it should display a dotted line. Just like it does in the "today" period:

image

Screenshots

No response

Environment

N/A

ArniPL avatar Sep 13 '23 15:09 ArniPL

👋 @ArniPL

https://plausible.io/plausible.io?period=7d seems to display "today" as well. Screenshot 2023-09-14 at 07 19 00

So if it was a bug, it seems to have already been fixed on master

ruslandoga avatar Sep 14 '23 00:09 ruslandoga

Hey @ruslandoga.

Yes, "last 7 days" period correctly displays today, as I mentioned in my bug report. But when you switch to hours, it does not anymore and shows only last 6 days not including today. See screenshot below:

image

ArniPL avatar Sep 14 '23 05:09 ArniPL

Ah, right. Sorry :)

Pinging @plausible/developers to check if this is intentional that https://plausible.io/plausible.io?period=7d + "hours" resolution doesn't show today.

ruslandoga avatar Sep 14 '23 05:09 ruslandoga

keep me posted

rdvo avatar Sep 14 '23 16:09 rdvo

Should be fixed with #3363

krisbuist avatar Sep 22 '23 11:09 krisbuist