fixed failing tests
This commit is contained in:
@@ -130,6 +130,9 @@ public class XMLTools extends XMLWriter {
|
|||||||
*/
|
*/
|
||||||
public static Date tryDate(String toParse) {
|
public static Date tryDate(String toParse) {
|
||||||
SimpleDateFormat formatter = null;
|
SimpleDateFormat formatter = null;
|
||||||
|
if (toParse==null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (toParse.contains("-")) {
|
if (toParse.contains("-")) {
|
||||||
// from ubl
|
// from ubl
|
||||||
formatter = new SimpleDateFormat("yyyy-MM-dd");
|
formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
|||||||
Reference in New Issue
Block a user