From 132d911a41f1bc8694235bff322c9dc90f8ff3e5 Mon Sep 17 00:00:00 2001 From: staphen Date: Tue, 21 Mar 2023 11:05:12 -0400 Subject: [PATCH] Fix year in screenshot file names --- Source/capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/capture.cpp b/Source/capture.cpp index 4d993c5e0..a6d59805a 100644 --- a/Source/capture.cpp +++ b/Source/capture.cpp @@ -138,7 +138,7 @@ FILE *CaptureFile(std::string *dstPath) const std::tm *tm = std::localtime(&tt); const std::string filename = tm != nullptr ? fmt::format("Screenshot from {:04}-{:02}-{:02} {:02}-{:02}-{:02}", - tm->tm_year, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec) + tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec) : "Screenshot"; *dstPath = StrCat(paths::PrefPath(), filename, ".pcx"); int i = 0;