You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Tracearr weekly playback activity uses UTC instead of local timezone #272
Connect a Tracearr instance from a device in a timezone other than UTC.
Play media when the local calendar date differs from the UTC date.
Compare the seven-day playback activity chart against Tracearr's WebUI.
What did you expect to happen?
Playback activity should be attributed to the correct local calendar day, using the device's timezone.
What happened instead?
Late-night playback can appear under the following weekday because the activity appears to use UTC rather than the device's local timezone.
Technical investigation
The Overview screen passes a null timezone to the activity and today-stat providers. Tracearr's bundled v1 API specification indicates that the default timezone is UTC.
One possible solution is to resolve the device's IANA timezone using the existing flutter_timezone dependency and pass it through to the API.
Testing
I personally verified that playback starting Thursday at 9:40 PM PST (Friday in UTC) was correctly counted on Thursday after applying the proposed fix in my fork. Automated Tracearr validation also passed. Daylight saving transitions and timezone-detection fallback remain unverified.
AI disclosure
I maintain Atrium Enhanced as a personal, human-directed, AI-developed fork for my home lab. I identified the issue and performed real-world device testing. ChatGPT investigated the source, implemented the proposed solution, developed automated tests and drafted this report. No independent human technical review has occurred.
The proposed implementation is available for reference: koinupapi#11
The fix was tested on my personal fork based on Atrium 1.12.0. The relevant upstream development code was also inspected.
Before submitting
I removed API keys, tokens and server addresses from everything above
I searched the existing issues and this is not a duplicate
I am on the latest release, or I have explained above why not
Good catch, thanks! Fixed in #274. Atrium now sends Tracearr your phone's timezone, so late-night plays stay on the right day in the chart and in today's stats too. It'll be in the next release.
Activity
retransmit commentedon Nov 28, 2026
Good catch, thanks! Fixed in #274. Atrium now sends Tracearr your phone's timezone, so late-night plays stay on the right day in the chart and in today's stats too. It'll be in the next release.