docs(libkernel): record what the local time conversions write on a PS5 #10198

Merged
orezraey merged 1 commit from upstream-pr/10198 into main 2026-10-26 15:37:12 +00:00
orezraey commented 2026-10-23 12:58:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by orezraey on 2026-10-23T12:58:48Z.


What

sceKernelConvertUtcToLocaltime and sceKernelConvertLocaltimeToUtc measured on a retail PS5 (firmware 13.60) set to UTC-3, with dates from 1970 to 2038 that cross Brazil's old summer time. The source and console log are in this gist (plocal).

The offsets, dst_sec and the converted times follow the zone's history, as AnyPS5 does on a host with the same history. Two outputs differ, and a new debt entry records them:

  • the first 8 bytes of the 16-byte block hold the zone's last transition at or before the instant (1550368800, the end of summer time in February 2019, for every 2026 and 2038 date), not the instant;
  • the last argument is 3600 in every case but one, even in 2026, when the zone has had no summer time since 2019.

The code is unchanged: reproducing the transition needs the zone's full history, which the Windows C runtime does not have.

Tested

Documentation only. tools/check_conventions.py passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #10499 (merge order only: it edits the same lines; this PR is refreshed after it)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4983098622 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10198). Originally posted by [orezraey](https://github.com/orezraey) on 2026-10-23T12:58:48Z. --- ### What `sceKernelConvertUtcToLocaltime` and `sceKernelConvertLocaltimeToUtc` measured on a retail PS5 (firmware 13.60) set to UTC-3, with dates from 1970 to 2038 that cross Brazil's old summer time. The source and console log are in [this gist](https://gist.github.com/orezraey/ac7991e6cf9137e7fa4b40773b930a1e) (`plocal`). The offsets, `dst_sec` and the converted times follow the zone's history, as AnyPS5 does on a host with the same history. Two outputs differ, and a new debt entry records them: - the first 8 bytes of the 16-byte block hold the zone's last transition at or before the instant (`1550368800`, the end of summer time in February 2019, for every 2026 and 2038 date), not the instant; - the last argument is 3600 in every case but one, even in 2026, when the zone has had no summer time since 2019. The code is unchanged: reproducing the transition needs the zone's full history, which the Windows C runtime does not have. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Documentation only. `tools/check_conventions.py` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #10499 (merge order only: it edits the same lines; this PR is refreshed after it) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-23 13:01:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:01:13Z.

Review: APPROVED


Reviewed exact head 1237c499cc16bf0128b9c5b9b070b08e9f32eb7f. This is a focused debt-note update: it records the reported firmware 13.60 UTC-3 observations, distinguishes values that follow zone history from the two output fields that differ, and explains why the Windows host implementation is not changed. It makes no runtime-correction claim. Hosted eligibility, conventions, intake and labels pass; product jobs are path-skipped, which is appropriate for the documentation-only change. I found no blocking issue or overlapping-line dependency in this diff.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5628566145 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10198#pullrequestreview-5628566145). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T13:01:13Z. **Review:** APPROVED --- Reviewed exact head `1237c499cc16bf0128b9c5b9b070b08e9f32eb7f`. This is a focused debt-note update: it records the reported firmware 13.60 UTC-3 observations, distinguishes values that follow zone history from the two output fields that differ, and explains why the Windows host implementation is not changed. It makes no runtime-correction claim. Hosted eligibility, conventions, intake and labels pass; product jobs are path-skipped, which is appropriate for the documentation-only change. I found no blocking issue or overlapping-line dependency in this diff.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10198
No description provided.