moveToTrash/Unix: use Qt::ISODate to format the current date
Instead of forcing QDateTime to parse our pattern. Pick-to: 6.6 Change-Id: I9d43e5b91eb142d6945cfffd1786d094a123826a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
a71f556830
commit
6e4d9ff74d
@ -1389,7 +1389,7 @@ bool QFileSystemEngine::moveFileToTrash(const QFileSystemEntry &source,
|
||||
QByteArray info =
|
||||
"[Trash Info]\n"
|
||||
"Path=" + QUrl::toPercentEncoding(infoPath, "/") + "\n"
|
||||
"DeletionDate=" + QDateTime::currentDateTime().toString("yyyy-MM-ddThh:mm:ss"_L1).toUtf8()
|
||||
"DeletionDate=" + QDateTime::currentDateTime().toString(Qt::ISODate).toUtf8()
|
||||
+ "\n";
|
||||
infoFile.write(info);
|
||||
infoFile.close();
|
||||
|
Loading…
Reference in New Issue
Block a user