Skip to content

Commit 33adecd

Browse files
authored
Merge branch 'main' into splash
2 parents eec812e + d01e438 commit 33adecd

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/gui/gui.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,11 +2420,11 @@ bool PCSX::GUI::about() {
24202420
clip::set_text(
24212421
fmt::format("Version: {}\nBuild: {}\nChangeset: {}\nDate & time: {:%Y-%m-%d %H:%M:%S}",
24222422
version.version, version.buildId.value(), version.changeset,
2423-
fmt::localtime(version.timestamp)));
2423+
*std::localtime(&version.timestamp)));
24242424
} else {
24252425
clip::set_text(fmt::format("Version: {}\nChangeset: {}\nDate & time: {:%Y-%m-%d %H:%M:%S}",
24262426
version.version, version.changeset,
2427-
fmt::localtime(version.timestamp)));
2427+
*std::localtime(&version.timestamp)));
24282428
}
24292429
}
24302430
ImGui::Text(_("Version: %s"), version.version.c_str());
@@ -2436,7 +2436,7 @@ bool PCSX::GUI::about() {
24362436
if (ImGui::SmallButton(version.changeset.c_str())) {
24372437
openUrl(fmt::format("https://github.com/grumpycoders/pcsx-redux/commit/{}", version.changeset));
24382438
}
2439-
std::tm tm = fmt::localtime(version.timestamp);
2439+
std::tm tm = *std::localtime(&version.timestamp);
24402440
std::string timestamp = fmt::format("{:%Y-%m-%d %H:%M:%S}", tm);
24412441
ImGui::Text(_("Date & time: %s"), timestamp.c_str());
24422442
}

src/main/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ int pcsxMain(int argc, char **argv) {
218218
fmt::print(
219219
"{{\n \"version\": \"{}\",\n \"changeset\": \"{}\",\n \"timestamp\": \"{}\",\n \"timestampDecoded\": "
220220
"\"{:%Y-%m-%d %H:%M:%S}\"\n}}\n",
221-
version.version, version.changeset, version.timestamp, fmt::localtime(version.timestamp));
221+
version.version, version.changeset, version.timestamp, *std::localtime(&version.timestamp));
222222
return 0;
223223
}
224224

third_party/fmt

Submodule fmt updated 187 files

0 commit comments

Comments
 (0)