Browse Source

Fix year in screenshot file names

pull/5904/merge
staphen 3 years ago committed by Anders Jenbo
parent
commit
132d911a41
  1. 2
      Source/capture.cpp

2
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;

Loading…
Cancel
Save