fix(rtc): parse ISO text in sceRtcParseDateTime by the RFC 3339 rules #1398
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1398"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T02:11:59Z.
What
Stacked on #1397: this branch also carries that PR's commit, and only the last commit is new here. The PS5 measurements and the probe source are in the comments on #1397.
I measured this on a PS5 (firmware 13.60) with the same
dlopenprobe as #1397.sceRtcParseDateTimeandsceRtcParseRFC3339give the same return code and output tick for every input that starts with a digit. The one difference is thatsceRtcParseDateTimeskips leading spaces and tabs first, and nothing else:\n,\r,\v,\fand\xa0are BAD_PARSE. So the ISO branch now skips spaces and tabs and then calls the RFC 3339 parser.What changes for
sceRtcParseDateTimeonmain:main2024-02-29T12:34:56.789(no zone)2024-02-29 12:34:56(space separator)2024-02-29 12:34:56Z\t 2024-02-29T12:34:56Z2024-02-29T12:34:56Zjunk,...+99:99sceRtcParseRFC3339)2024-02-29,2024/02/29T12:34:56Z,...56.The TechnicalDebt entry from #516 assumed the space separator and the zone-less form. It now says that this branch follows the measured RFC 3339 rules. The RFC 2822 / asctime part is left as is: the next PR handles it.
Title evidence, stated plainly: the only evidence for this function is #516's statement that The Last of Us Part I needs
sceRtcParseDateTime. #516 was merged on that statement alone, with no title ID and no log line. The Propagation: Paradise Hotel dump (PPSA15878) that backs #1397 does not use this function, onlysceRtcParseRFC3339. The "title ID and the log line where it stops on main" bar was set for new library functions, and this PR corrects one that is already merged. It may still apply, so I'm flagging it here.Tested
sceRtcParseDateTimeinputs that start with a digit after leading spaces and tabs give the same return code and tick on this branch as on the console. Non-ISO text still throws here, as onmain.libs, full CTest 408/408.libs, CTest 0 failed of 404 (GPU execution tests skipped, the VM has no GPU).guest_rtcfail.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T02:47:54Z.
About the overlap report: #1253, #1306 and #1314 are not dependencies. Each of them inserts a TechnicalDebt line right after
s_setkill, which is directly above thesceRtcParseDateTimeentry, and this PR has to rewrite that entry (it still says that ISO text without a zone is read as UTC). Git treats the two edits as a conflict only because the lines are adjacent. Code and tests do not overlap. Whichever lands first, I'll rebase the other side. The three shader PRs also overlap with each other at the same spot.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T12:56:10Z.
Checked the new
sceRtcParseDateTimecases inGuestRtc.cppagainst the PS5 measurements posted on #1397 (leading space/tab, zone-less and space-separated BAD_PARSE with the tick untouched,Zjunk,+99:99,12:34:56.789+99:99,12:34:60-01:00); they match.guest_rtcfails with theExport.cppchange reverted, full ctest 452/452 green, CI green. Merging.