mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-15 04:57:49 -04:00
AppImage fix - put_time req. GCC 5+
This commit is contained in:
parent
9b1f7b828c
commit
e6cd2ae774
@ -644,7 +644,13 @@ void DemodulatorInstance::startRecording() {
|
|||||||
fileName << getLabel();
|
fileName << getLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
fileName << "_" << std::put_time(<m, "%d-%m-%Y_%H-%M-%S");
|
// GCC 5+
|
||||||
|
// fileName << "_" << std::put_time(<m, "%d-%m-%Y_%H-%M-%S");
|
||||||
|
|
||||||
|
char timeStr[512];
|
||||||
|
strftime(timeStr, sizeof(timeStr), "%d-%m-%Y_%H-%M-%S", <m);
|
||||||
|
fileName << "_" << timeStr;
|
||||||
|
|
||||||
|
|
||||||
afHandler->setOutputFileName(fileName.str());
|
afHandler->setOutputFileName(fileName.str());
|
||||||
newSinkThread->setAudioFileHandler(afHandler);
|
newSinkThread->setAudioFileHandler(afHandler);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user