Skip to content

[Bug]: Tracearr weekly playback activity uses UTC instead of local timezone #272

Done

Description

@koinupapi

Atrium version

1.12.0

Where did you install it from?

GitHub releases

Which part of the app?

Tracearr

Version of that service

v3.2.1

Which URL was in use?

Local URL

Device and Android version

Samsung Galaxy S26 Ultra, Android 17

Steps to reproduce

  1. Connect a Tracearr instance from a device in a timezone other than UTC.
  2. Play media when the local calendar date differs from the UTC date.
  3. 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

Activity

  1. added
    bug
    on Nov 28, 2026
  2. retransmit commented on Nov 28, 2026

    @retransmit
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions