mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #1574] [MERGED] savedatadialog_ui: Use fmt::localtime instead of formatting std::chrono::local_time #2177
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#2177
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/1574
Author: @squidbus
Created: 11/22/2024
Status: ✅ Merged
Merged: 11/22/2024
Merged by: @georgemoralis
Base:
main← Head:time-fix📝 Commits (1)
df0a2f1savedatadialog_ui: Use fmt::localtime instead of formatting std::chrono::local_time📊 Changes
1 file changed (+3 additions, -33 deletions)
View changed files
📝
src/core/libraries/save_data/dialog/savedatadialog_ui.cpp(+3 -33)📄 Description
Formatting
std::chrono::local_timeis not compiling right on some Linux systems, probably to do with the standard library version check that fmt has for it.Instead we can just convert to
time_tand usefmt::localtime. This also means we can eliminate all the extra code usingstd::chronotime zones and the corresponding Mac compatibility code using the date library.Tested in a few games and the save dialog times still look correct.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.