-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamps in Reports 1 hour behind #35
Comments
I'm assuming you're in UTC+1 (CET), and that the plugin is displaying UTC |
That's correct. But all other plugins display CET. |
All other plugins is false jellyfin/jellyfin-plugin-playbackreporting#24, but could you point to a plugin that actually does show the expected time? |
Playback Reporting (I think that's built-in). Both web client and server are in the same timezone UTC+1 (CET). |
Looking through the codebase, which I'll freely admit I'm not too familiar with, it looks like ReportHelper.cs#L16-L33 are where this might be going wrong.
Using the There's several ways resolving this could be approached. Perhaps someone could pitch in here to see what would best suit this codebase. Unfortunately I don't have an environment where I could build and test out solutions hence my input will limit itself to suggesting approaches as opposed to providing a suitable patch. Instead of using the InvariantCulture why not rely on the CultureInfo provided by the environment? Is it not suitable here? Another thing to consider is the serialization and desirialization of the dates where timezones get involved. Is TimeZoneInfo.Local set correctly in the environment? There's a decent article in the Ms Docs that covers this providing handy examples. Roughly here's a rundown that could get us on the right path:
Hope this helps. |
mine displays in 24 hour format but is 3 hours ahead |
My reports are also in UTC. Just to confirm - has there been no update to the plugin to either have a timezone setting or to import the Jellyfin time zone setting? |
2 hours back time zone me: UTC +2 |
Jellyfin has the correct time and timezone (linked to /etc/localtime). Also, timestamps in Dashboard/Activity section are correct.
However, in Reports plugin, the times are:
a - 1 hour behind
b - in AM/PM format, even though system as well as Jellyfin are set for 24h format
Jellyfin 10.6.4 run as docker container.
Reports version 10.0.0.0
The text was updated successfully, but these errors were encountered: