[PR #3524] [MERGED] rtc: Fix date parsing detection. #3540

Closed
opened 2026-02-27 22:04:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3524
Author: @squidbus
Created: 9/5/2025
Status: Merged
Merged: 9/5/2025
Merged by: @squidbus

Base: mainHead: fix-dateparse


📝 Commits (1)

  • 7ff9ce7 rtc: Fix date parsing detection.

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/core/libraries/rtc/rtc.cpp (+2 -2)

📄 Description

Fix time format detection in sceRtcParseDateTime by changing the format key index to 19.

  • For RFC3339, index of 22 for the timezone specifier assumed a milliseconds component, which may not be present. We can use 19 instead, where the timezone indicator is when there is no milliseconds component, and add the . to the keys list for when there are milliseconds.
  • For RFC2822, there will also be a : at index 19 so there is no change needed with the new index.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3524 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 9/5/2025 **Status:** ✅ Merged **Merged:** 9/5/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `fix-dateparse` --- ### 📝 Commits (1) - [`7ff9ce7`](https://github.com/shadps4-emu/shadPS4/commit/7ff9ce7b4a88e8ad9e35128a5efee945ebf50a93) rtc: Fix date parsing detection. ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/rtc/rtc.cpp` (+2 -2) </details> ### 📄 Description Fix time format detection in `sceRtcParseDateTime` by changing the format key index to 19. * For RFC3339, index of 22 for the timezone specifier assumed a milliseconds component, which may not be present. We can use 19 instead, where the timezone indicator is when there is no milliseconds component, and add the `.` to the keys list for when there are milliseconds. * For RFC2822, there will also be a `:` at index 19 so there is no change needed with the new index. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:04:04 +03:00
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3540
No description provided.