[Bug]: User Stats Not showing current listening progress #1980

Open
opened 2026-02-20 10:14:35 -05:00 by deekerman · 6 comments
Owner

Originally created by @kanjieater on GitHub (May 9, 2024).

What happened?

I listened to over an hour of audiobooks today but it didn't show all of my time tracked
image

What did you expect to happen?

User stats should show the users stats up to date with how much they've listened to that day. I'd like to know how much I listened to today.

Steps to reproduce the issue

  1. Listen to multiple sessions
  2. User stats seems to stop tracking it

Audiobookshelf version

v2.9.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

Logs

No response

Additional Notes

No response

Originally created by @kanjieater on GitHub (May 9, 2024). ### What happened? I listened to over an hour of audiobooks today but it didn't show all of my time tracked ![image](https://github.com/advplyr/audiobookshelf/assets/32607317/b2932b1b-ad57-433c-ac71-85b1b4da2614) ### What did you expect to happen? User stats should show the users stats up to date with how much they've listened to that day. I'd like to know how much I listened to today. ### Steps to reproduce the issue 1. Listen to multiple sessions 2. User stats seems to stop tracking it ### Audiobookshelf version v2.9.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Chrome ### Logs _No response_ ### Additional Notes _No response_
Author
Owner

@kanjieater commented on GitHub (May 10, 2024):

Server time was set to UTC but i was expecting clients to be local time. Would it be better to allow users to set their own timezone or detect it per device?

@kanjieater commented on GitHub (May 10, 2024): Server time was set to UTC but i was expecting clients to be local time. Would it be better to allow users to set their own timezone or detect it per device?
Author
Owner

@advplyr commented on GitHub (May 10, 2024):

Timestamps are stored in UTC and when needed they are converted using whatever timezone the server is set. You should define the timezone you want in your docker config. Is this still a bug?

@advplyr commented on GitHub (May 10, 2024): Timestamps are stored in UTC and when needed they are converted using whatever timezone the server is set. You should define the timezone you want in your docker config. Is this still a bug?
Author
Owner

@kanjieater commented on GitHub (May 10, 2024):

Timestamps are stored in UTC and when needed they are converted using whatever timezone the server is set. You should define the timezone you want in your docker config. Is this still a bug?

I would think the server would set it's time (probably utc), but imagine I have two users, one in japan & one in america. What would the user stats show for that day? I thought this was a timezones issue but maybe I'm wrong

You can see that as someone in America/Chicago time zone accessing my UTC server it only shows 40~mins for the day
image

it didn't show that I had listened to at least this full 1hr 11min session (and the other session before it too on the same day)
image

@kanjieater commented on GitHub (May 10, 2024): > Timestamps are stored in UTC and when needed they are converted using whatever timezone the server is set. You should define the timezone you want in your docker config. Is this still a bug? I would think the server would set it's time (probably utc), but imagine I have two users, one in japan & one in america. What would the user stats show for that day? I thought this was a timezones issue but maybe I'm wrong You can see that as someone in America/Chicago time zone accessing my UTC server it only shows 40~mins for the day ![image](https://github.com/advplyr/audiobookshelf/assets/32607317/7ffc0769-360a-4cfa-ac87-161e14af616c) it didn't show that I had listened to at least this full 1hr 11min session (and the other session before it too on the same day) ![image](https://github.com/advplyr/audiobookshelf/assets/32607317/19d2e695-33b7-442f-99f6-1962d0bdb43f)
Author
Owner

@kanjieater commented on GitHub (May 11, 2024):

I modified my timestamps like so, and still am seeing this strange behavior
image

It says I've listened to 3 hours this morning already, when I only listened to about 10, but listened to about 3 hours yesterday
image

@kanjieater commented on GitHub (May 11, 2024): I modified my timestamps like so, and still am seeing this strange behavior ![image](https://github.com/advplyr/audiobookshelf/assets/32607317/5871dfcf-4b7f-4f8f-b1ea-8d2929f697ab) It says I've listened to 3 hours this morning already, when I only listened to about 10, but listened to about 3 hours yesterday ![image](https://github.com/advplyr/audiobookshelf/assets/32607317/f7096c95-51f0-4301-a088-d0fbee323e9f)
Author
Owner

@Tihersarc commented on GitHub (Oct 30, 2024):

I'm having this issue when I've been listening to a book for X chapters offline. When connecting back to the server (Windows) it seems to only register the last chapter's length, instead of the whole X chapters length, so if I've listened to 3 chapters 20m each, when I come home and connect to the server I'll only have 20m instead of 60m.

@Tihersarc commented on GitHub (Oct 30, 2024): I'm having this issue when I've been listening to a book for X chapters offline. When connecting back to the server (Windows) it seems to only register the last chapter's length, instead of the whole X chapters length, so if I've listened to 3 chapters 20m each, when I come home and connect to the server I'll only have 20m instead of 60m.
Author
Owner

@filcuk commented on GitHub (Jun 18, 2025):

I'm on GMT TZ both server and client, latest server v2.25.1.
None of the statistics update for 'today'

*Always online for all sessions today, all streamed not downloaded

Image

@filcuk commented on GitHub (Jun 18, 2025): I'm on GMT TZ both server and client, latest server v2.25.1. None of the statistics update for 'today' *Always online for all sessions today, all streamed not downloaded ![Image](https://github.com/user-attachments/assets/c2464476-0847-43d8-b74e-b708da0deec8)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/audiobookshelf-advplyr#1980
No description provided.