Repository navigation
Conversation
…dules judged in server-local time Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Please dont submit PRs unless you've tested it |
Pull Request
Summary
Adds
GET /Moonfin/Time, which returns the server's clock and time zone. Jellyfin judges a user's access schedule against the server's local time and no stock endpoint reports it, so a Roku in another time zone can't tell when the account opens or next opens. Ping gains atimeSupportedflag so clients know whether to ask.Related Issues
Type of Change
Area
Changes Made
Jellyfin/backend/Api/ServerTimeController.cs:GET Moonfin/Time([Authorize], like Ping) returns{ utcTime, localTime, utcOffsetSeconds, timeZoneId, isDaylightSavingTime }.utcTimeis ISO 8601 UTC with a trailingZ;localTimeis the same instant on the server's wall clock with no offset, which is what a schedule is judged against; the offset is in seconds, east positive, and reflects daylight saving at that instant.MoonfinController:timeSupported: trueon the Ping response, nullable like the other capability flags, so an older plugin leaves it out and clients fall back to the device clock.ServerTimeTests: the response for fixed instants and zones (positive and negative offsets, day rollover, a New York daylight saving switch) and the JSON keys clients read.Client Impact
timeSupported(Ping),utcTime,localTime,utcOffsetSeconds,timeZoneId,isDaylightSavingTime(Moonfin/Time). No settings keys.Compatibility
bool?, an int toint?)The settings profile isn't touched. Emby is not changed: the Roku access schedule feature never watches Emby, so there is no caller. Say if you want it there too.
Testing
dotnet testofMoonfin.Server.Tests(576 passed) and a clean build. The endpoint needs a check against a running Jellyfin and a client in a different time zone.Test Steps
GET /Moonfin/Timewith a user token and checklocalTimeagainst the server's wall clock.GET /Moonfin/Pingand checktimeSupportedistrue.Checklist
AI assistance
An AI assistant (Claude) wrote this change, as the contributing guide asks me to say.
🤖 Generated with Claude Code