made delay timestamp parser accept nano seconds

This commit is contained in:
iNPUTmice 2015-02-09 11:53:35 +01:00
parent ae8c021c16
commit ac309efcc8

View File

@ -41,7 +41,7 @@ public abstract class AbstractParser {
timestamp = timestamp.replace("Z", "+0000");
SimpleDateFormat dateFormat;
if (timestamp.contains(".")) {
dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.US);
dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ", Locale.US);
} else {
dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ",Locale.US);
}