Commit 69552e0a authored by Jasem Mutlaq's avatar Jasem Mutlaq

Use Windows-friendly file names

parent 23105358
......@@ -565,7 +565,7 @@ void Logging::UseFile()
QDir dir;
QString path = KSPaths::writableLocation(QStandardPaths::GenericDataLocation) + "logs/" + QDateTime::currentDateTime().toString("yyyy-MM-dd");
dir.mkpath(path);
QString name = "log_" + QDateTime::currentDateTime().toString("HH:mm:ss") + ".txt";
QString name = "log_" + QDateTime::currentDateTime().toString("HH-mm-ss") + ".txt";
_filename = path + QStringLiteral("/") + name;
// Clear file contents
......
......@@ -311,7 +311,7 @@ void GenericDevice::processBLOB(IBLOB * bp)
QString filename(currentDir + '/');
QString ts = QDateTime::currentDateTime().toString("yyyy-MM-ddThh:mm:ss");
QString ts = QDateTime::currentDateTime().toString("yyyy-MM-ddThh-mm-ss");
filename += QString("file_") + ts + QString(bp->format).trimmed();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment