Commit b38d7611 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Dropping ISO8601 as it creates an illegal filename under Windows and replacing colons with dashes

parent 1e083f0c
......@@ -1157,7 +1157,9 @@ void CCD::processBLOB(IBLOB* bp)
// Create file name for others
else
{
QString ts = QDateTime::currentDateTime().toString("yyyy-MM-ddThh:mm:ss");
// IS8601 contains colons but they are illegal under Windows OS, so replacing them with '-'
// The timestamp is no longer ISO8601 but it should solve interoperality issues between different OS hosts
QString ts = QDateTime::currentDateTime().toString("yyyy-MM-ddThh-mm-ss");
if (ISOMode == false)
filename += seqPrefix + (seqPrefix.isEmpty() ? "" : "_") + QString("%1.%2").arg(QString().sprintf("%03d", nextSequenceID)).arg(QString(fmt));
......
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