mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2582] [MERGED] Fix time - sceKernelClockGettime #2836
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2836
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 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:
main← Head:Fix_Time📝 Commits (1)
6da0d00Fix 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

*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
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.