Default naive seek datetimes to system timezone for RTSP/HTTP catchup#425
Draft
Default naive seek datetimes to system timezone for RTSP/HTTP catchup#425
Conversation
Co-authored-by: stackia <5107241+stackia@users.noreply.github.com> Agent-Logs-Url: https://github.com/stackia/rtp2httpd/sessions/a6f0da50-0571-4932-950c-159fb9c6a2b2
Co-authored-by: stackia <5107241+stackia@users.noreply.github.com> Agent-Logs-Url: https://github.com/stackia/rtp2httpd/sessions/a6f0da50-0571-4932-950c-159fb9c6a2b2
Co-authored-by: stackia <5107241+stackia@users.noreply.github.com> Agent-Logs-Url: https://github.com/stackia/rtp2httpd/sessions/a6f0da50-0571-4932-950c-159fb9c6a2b2
Copilot
AI
changed the title
[WIP] Fix issue with triggering clock branch in v3.12.0-alpha.1
Default naive seek datetimes to system timezone for RTSP/HTTP catchup
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
playseek/catchup requests without an explicit client timezone were being parsed as UTC. On non-UTC deployments this caused recent local-time seeks to miss the RTSPRange: clock=path and fall back to upstream query passthrough.Timezone fallback semantics
yyyyMMddHHmmss, naive ISO 8601) to default to the daemon's system timezone when the client does not provide a timezone viaUser-Agent.yyyyMMddHHmmssGMTZor±HH:MMRTSP recent-seek behavior
playseekvalues now resolve to the correct UTC instant before the< 1 hourcheck.PLAY Range: clock=<utc>-Shared seek conversion path
E2E coverage
playseekshould still trigger RTSPRange: clock=.TZonly to the childrtp2httpdprocess.Docs
Example of the corrected behavior:
Original prompt
This section details on the original issue you should resolve
<issue_title>v3.12.0-alpha.1 无法触发 Range: clock</issue_title>
<issue_description>网页端测试一小时内回看,不知为何日志里没看见有走 clock 分支,回看正常。