mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
AppImage fix - put_time req. GCC 5+
This commit is contained in:
parent
9b1f7b828c
commit
e6cd2ae774
@ -644,8 +644,14 @@ void DemodulatorInstance::startRecording() {
|
||||
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());
|
||||
newSinkThread->setAudioFileHandler(afHandler);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user