qt: plat_tempfile: Fix milliseconds being appended twice

This commit is contained in:
Alexander Babikov
2023-06-22 21:53:15 +05:00
parent 8782f5d9d6
commit 3686026ded

View File

@@ -316,7 +316,7 @@ plat_tempfile(char *bufp, char *prefix, char *suffix)
name.append(QString("%1-").arg(prefix));
}
name.append(QDateTime::currentDateTime().toString("yyyyMMdd-hhmmss-zzzz"));
name.append(QDateTime::currentDateTime().toString("yyyyMMdd-hhmmss-zzz"));
if (suffix)
name.append(suffix);
strcpy(bufp, name.toUtf8().data());