mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 18:45:36 +00:00
fix(savedata): replace deprecated fmt::localtime with modern chrono formatting
This commit is contained in:
parent
2d335f436c
commit
1bff42520e
@ -96,9 +96,8 @@ SaveDialogState::SaveDialogState(const OrbisSaveDataDialogParam& param) {
|
||||
param_sfo.Open(param_sfo_path);
|
||||
|
||||
auto last_write = param_sfo.GetLastWrite();
|
||||
std::string date_str =
|
||||
fmt::format("{:%d %b, %Y %R}",
|
||||
fmt::localtime(std::chrono::system_clock::to_time_t(last_write)));
|
||||
auto sys_time = std::chrono::clock_cast<std::chrono::system_clock>(last_write);
|
||||
std::string date_str = fmt::format("{:%d %b, %Y %R}", sys_time);
|
||||
|
||||
size_t size = Common::FS::GetDirectorySize(dir_path);
|
||||
std::string size_str = SpaceSizeToString(size);
|
||||
@ -847,4 +846,4 @@ void SaveDialogUi::DrawProgressBar() {
|
||||
ProgressBar(static_cast<float>(bar_state.progress) / 100.0f,
|
||||
{PROGRESS_BAR_WIDTH * ws.x, BUTTON_SIZE.y});
|
||||
}
|
||||
}; // namespace Libraries::SaveData::Dialog
|
||||
}; // namespace Libraries::SaveData::Dialog
|
||||
|
Loading…
Reference in New Issue
Block a user