Allow conversion of DateTime in TagValue::toString()
This commit is contained in:
parent
6c1a0b9126
commit
e1d14ad61b
|
@ -462,6 +462,9 @@ void TagValue::toString(string &result, TagTextEncoding encoding) const
|
|||
case TagDataType::TimeSpan:
|
||||
result = toTimeSpan().toString();
|
||||
break;
|
||||
case TagDataType::DateTime:
|
||||
result = toDateTime().toString();
|
||||
break;
|
||||
default:
|
||||
throw ConversionException("Can not convert binary data/picture to string.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue