Date displayed in /u/

AI-generated summary

The discussion revolves around the date displayed in the /u/ page. smith initiates the conversation by stating the current date is April 10. Rhidian explains that “Today” means “in the last 24 hours” and suggests changing the text to “Last Day” or “Last 24hrs” to avoid confusion. Stephen points out an inconsistency and references a meta post explaining the issue.

Rhidian agrees that “Today” should show today’s date and questions the clarity of the “last updated” note below the drop-down. techAPJ explains that the number of users shown is a mystery because stats are updated at different times for different periods. techAPJ then announces that the issue has been fixed via a GitHub commit.

Hi!
At the moment it is April 10.

Today means “in the last 24 hours” and thus the period where the statistics apply to starts yesterday.
It is indeed a bit odd how it says ‘today’ with yesterdays date.
On my forum I changed the text setting js.filter.top.today to Last Day
..or you couold change it to Last 24hrs

image

Did you look at the last updated note below the drop-down?

Per:

There’s still an inconsistency here though:

It’s not a running 24 hour timeframe up until now, and depending on when the user looks at it ‘Last Day’ would also be misleading. That’s why the note was added.

Agree it would be better if “Today” showed today’s date. I’m not convinced the last updated note below that in the drop down makes that any clearer? In some ways it makes it more confusing.

What is that query actually retrieving? Is it last 24 hrs from the date/time shown in the note below?

The number of users shown below that is also a mystery. Is that supposed to fe the number returned in the query? On my forum the number shown for “Today” is actually higher than the number for the “All time” filter? On Discourse Meta the numbers are very close. Am I interpreting this number correctly?

That is because the stats are updated at different time for different periods. So if you’ll compare “Last Updated” timestamp for “All time” and “Today” you’ll see that “Today” has been updated more recently.

Fixed via: