[PR #2582] [MERGED] Fix time - sceKernelClockGettime #2836

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2582
Author: @DanielSvoboda
Created: 3/2/2025
Status: Merged
Merged: 3/2/2025
Merged by: @georgemoralis

Base: mainHead: Fix_Time


📝 Commits (1)

  • 6da0d00 Fix time - sceKernelClockGettime

📊 Changes

1 file changed (+9 additions, -7 deletions)

View changed files

📝 src/core/libraries/kernel/time.cpp (+9 -7)

📄 Description

sceKernelClockGettime was not correctly getting the current date

When saving a game, this function was called, but it wasn’t returning the date correctly, as seen in the image with 1969 or 1970.
And as shown, the last two saves have the correct date, as this PR was used to save.

*If you have any game that shows the wrong date, it will only be corrected after making a new save.

Game: VA-11 Hall-A
image
*Yes, 02/03/2025 is correct because I am in Brazil, so it shows my date format, dd/mm/yyyy. This varies according to your system, as shown in the screenshot below.

Game: KNACK 2

Before After
image image

It's very likely that this is also used in other places besides the save. I remember seeing some logs with incorrect dates.


🔄 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/2582 **Author:** [@DanielSvoboda](https://github.com/DanielSvoboda) **Created:** 3/2/2025 **Status:** ✅ Merged **Merged:** 3/2/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `Fix_Time` --- ### 📝 Commits (1) - [`6da0d00`](https://github.com/shadps4-emu/shadPS4/commit/6da0d00d4d965441853386f162aa394c1d57b030) Fix time - sceKernelClockGettime ### 📊 Changes **1 file changed** (+9 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/time.cpp` (+9 -7) </details> ### 📄 Description sceKernelClockGettime was not correctly getting the current date When saving a game, this function was called, but it wasn’t returning the date correctly, as seen in the image with 1969 or 1970. And as shown, the last two saves have the correct date, as this PR was used to save. *If you have any game that shows the wrong date, it will only be corrected after making a new save. Game: VA-11 Hall-A ![image](https://github.com/user-attachments/assets/965864bf-526a-45f1-8f14-b2cba12f200a) *Yes, 02/03/2025 is correct because I am in Brazil, so it shows my date format, dd/mm/yyyy. This varies according to your system, as shown in the screenshot below. Game: KNACK 2 | Before | After | |-------------|-------------| ![image](https://github.com/user-attachments/assets/8a88a53d-ea5a-4fbc-a93a-e00720c37160) | ![image](https://github.com/user-attachments/assets/dd8fad2d-a5ea-4930-9bd5-0363fb5422ea) It's very likely that this is also used in other places besides the save. I remember seeing some logs with incorrect dates. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:25 +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#2836
No description provided.