Don't involve locale in filename timestamp generation

It was batch replaced as part of 7b5781b845, but it's not really semantically valid
This commit is contained in:
Ilya Fedin 2023-01-10 03:57:54 +04:00 committed by John Preston
parent fc26457218
commit 1326359745
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ QString filedialogDefaultName(
QString base;
if (fileTime) {
const auto date = base::unixtime::parse(fileTime);
base = prefix + QLocale().toString(date, "_yyyy-MM-dd_HH-mm-ss");
base = prefix + date.toString("_yyyy-MM-dd_HH-mm-ss");
} else {
struct tm tm;
time_t t = time(NULL);