jellyfin / jellyfin-plugin-playbackreporting

Playback Statistics Plugin for Jellyfin
https://jellyfin.org
GNU General Public License v3.0
67 stars 25 forks source link

Feature/client timezone awareness #37

Closed Stampede10343 closed 3 years ago

Stampede10343 commented 3 years ago

This PR lets the client pass their timezone into the APIs so that the Server can adjust the queries and data to be more relevant to the user.

This addresses issue: #24.

Stampede10343 commented 3 years ago

There may be a better way to do this, or a better standard. Perhaps it could pull from a header or something, but it wasn't too much effort to update the app to use query params.

I thought about doing it all in the client, but for some of the formats, once the data gets collected it would be pretty hairy, and harder to test.