mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
removing \n in timestamp for json file
This commit is contained in:
parent
e68499bb09
commit
74e325edb4
@ -76,7 +76,9 @@ void MasterAttributes::GetCommonBinaryAttributes(
|
||||
w->Double(BINARY_WRITER_VERSION);
|
||||
w->Key("Timestamp");
|
||||
time_t t = time(nullptr);
|
||||
w->String(ctime(&t));
|
||||
std::string sTime(ctime(&t));
|
||||
std::replace(sTime.begin(), sTime.end(), '\n', '\0');
|
||||
w->String(sTime.c_str());
|
||||
w->Key("Detector Type");
|
||||
w->String(sls::ToString(detType).c_str());
|
||||
w->Key("Timing Mode");
|
||||
|
Loading…
x
Reference in New Issue
Block a user