mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-02 12:56:05 +00:00
Measured on a PS4 (firmware 10.71) for the review of the zone-shift overflow: sceRtcFormatRFC2822 returns 0x80B50003 for UINT64_MAX with +1 and +1439 minutes and for 2^64 - 1 minute with +1, where the shifted tick lands in year 1. The console returns 0x80B50008 when the shifted tick is past 9999 as a signed value (2^63 with -1 minute) and otherwise 0x80B50003 when the source or the shifted tick is negative as a signed value (2^63 with 0, 0 with -1); the tick after 9999 with -1 minute still formats. sceRtcFormatRFC3339 does wrap on the console: UINT64_MAX with +1 minute returns 0 and writes 0001-01-01T00:00:59.99+00:01, as the implementation already does. Tests now cover both. Written with AI assistance. Co-Authored-By: Claude Opus 5.5 <[email protected]>