Skip to content
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

Originally Available date off by one #130

Open
Hannah-GBS opened this issue Aug 3, 2023 · 1 comment
Open

Originally Available date off by one #130

Hannah-GBS opened this issue Aug 3, 2023 · 1 comment

Comments

@Hannah-GBS
Copy link

I know this hasn't been updated in a long time and nobody's likely to see this but it's driving me nuts.

I set an aired date for (eg) 20230729. I can see in the plugin logs this is correctly parsed as 2023-07-29 and set to episode.originally_available_at.

However, in Plex, when the metadata for the episode is parsed it displays as the 28th of July, instead of the 29th. This happens for every episode, the date displays 1 day earlier than the NFO is set to and the logs show. I tried changing the plugin from the parse function it uses to the Datetime.ParseDate that some of Plex's own agents use but had the same effect. Log shows correct date parsed, Plex shows different.

Server and Client are on the same timezone, though whether timezone could otherwise be affecting it I don't know. If it was then I'd expect it to happen to other agents using the same parse function anyway.

@Hannah-GBS
Copy link
Author

Okay so this is a timezone/DST thing.

Checked more thoroughly and episodes dated between late March and late October are 1 day out, ie when my system is on BST instead of GMT. Episodes dated for the rest of the year display correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant