AppImage fix - put_time req. GCC 5+

This commit is contained in:
Charles J. Cliffe 2017-12-31 20:59:06 -05:00
parent 9b1f7b828c
commit e6cd2ae774

View File

@ -644,8 +644,14 @@ void DemodulatorInstance::startRecording() {
fileName << getLabel();
}
fileName << "_" << std::put_time(&ltm, "%d-%m-%Y_%H-%M-%S");
// GCC 5+
// fileName << "_" << std::put_time(&ltm, "%d-%m-%Y_%H-%M-%S");
char timeStr[512];
strftime(timeStr, sizeof(timeStr), "%d-%m-%Y_%H-%M-%S", &ltm);
fileName << "_" << timeStr;
afHandler->setOutputFileName(fileName.str());
newSinkThread->setAudioFileHandler(afHandler);