Use java.time instead of custom code for parsing (requires API 26+).

This is a functional change on API26+ as a timezone identifier is required.
This commit is contained in:
Dennis Guse
2020-01-08 21:15:27 +01:00
parent b9420d4dde
commit 32070a0bd6
4 changed files with 40 additions and 25 deletions
@@ -412,7 +412,7 @@ abstract class AbstractFileTrackImporter extends DefaultHandler implements Track
timeValue = trackData.importTime;
} else {
try {
timeValue = StringUtils.getTime(time);
timeValue = StringUtils.parseTime(time);
} catch (IllegalArgumentException e) {
throw new SAXException(createErrorMessage(String.format(Locale.US, "Unable to parse time: %s", time)), e);
}