mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-29 15:02:28 +02:00
Add date to NX_char for now
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ H5::DataSet h5_utils::write_dataset(H5::Group& target, h5_dataset& dataset, map<
|
||||
value = h5_utils::get_value_from_reference(name, dataset.value, values);
|
||||
}
|
||||
|
||||
if (dataset.data_type == NX_CHAR) {
|
||||
if (dataset.data_type == NX_CHAR || dataset.data_type == NX_DATE_TIME) {
|
||||
// Attempt to convert to const char * (string "literals" cause that).
|
||||
try {
|
||||
return h5_utils::write_dataset(target, name, string(boost::any_cast<const char*>(value)));
|
||||
|
||||
Reference in New Issue
Block a user