From df88beb45f691f3db5599f8d49e6511babd89bad Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 16 Apr 2014 20:36:49 +1000 Subject: [PATCH] Qt ISODate in screenshot filename has bad colon characters on windows --- sleepyhead/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleepyhead/mainwindow.cpp b/sleepyhead/mainwindow.cpp index 53c81e64..ee493818 100644 --- a/sleepyhead/mainwindow.cpp +++ b/sleepyhead/mainwindow.cpp @@ -876,7 +876,7 @@ void MainWindow::DelayedScreenshot() dir.mkdir(a); } - a+="/screenshot-"+QDateTime::currentDateTime().toString(Qt::ISODate)+".png"; + a+="/screenshot-"+QDateTime::currentDateTime().toString("yyyyMMdd-hhmmss")+".png"; qDebug() << "Saving screenshot to" << a; if (!pixmap.save(a)) {