Skip to content

Commit

Permalink
Merge pull request #79 from Janniqz/master
Browse files Browse the repository at this point in the history
Fixed Remaining Time Timezone Issue
  • Loading branch information
Ombrelin authored Oct 20, 2022
2 parents e4666fc + f322ef7 commit abebdf0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public virtual RichPresence RenderSession(IPlexSession session)
{
return session.PlayerState switch
{
PlexPlayerState.Buffering => ("⟲", this.clock.Now),
PlexPlayerState.Paused => ("⏸", this.clock.Now),
PlexPlayerState.Playing => ("▶", this.clock.Now.AddSeconds(ComputeSessionRemainingTime(session))),
PlexPlayerState.Buffering => ("⟲", this.clock.Now.ToUniversalTime()),
PlexPlayerState.Paused => ("⏸", this.clock.Now.ToUniversalTime()),
PlexPlayerState.Playing => ("▶", this.clock.Now.AddSeconds(ComputeSessionRemainingTime(session)).ToUniversalTime()),
_ => throw new ArgumentOutOfRangeException()
};
}
Expand Down

0 comments on commit abebdf0

Please # to comment.