Convert dates to ISO 8601 for reconciliation. Fixes #688.
This commit is contained in:
parent
7615db97cf
commit
4a5d3d4662
@ -40,6 +40,8 @@ import java.io.StringWriter;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
@ -250,6 +252,10 @@ public class StandardReconConfig extends ReconConfig {
|
||||
jsonWriter.key("id"); jsonWriter.value(cell2.recon.match.id);
|
||||
jsonWriter.key("name"); jsonWriter.value(cell2.recon.match.name);
|
||||
jsonWriter.endObject();
|
||||
} else if (cell2.value instanceof Calendar) {
|
||||
jsonWriter.value(ParsingUtilities.dateToString(((Calendar) cell2.value).getTime()));
|
||||
} else if (cell2.value instanceof Date) {
|
||||
jsonWriter.value(ParsingUtilities.dateToString((Date) cell2.value));
|
||||
} else {
|
||||
jsonWriter.value(cell2.value.toString());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user