Allow conversion of DateTime in TagValue::toString()

This commit is contained in:
Martchus 2017-06-03 20:45:03 +02:00
parent 6c1a0b9126
commit e1d14ad61b
1 changed files with 3 additions and 0 deletions

View File

@ -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.");
}