Strabon

changeset 727:cb00280251b8 temporals

same
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Thu Nov 22 14:24:44 2012 +0200 (2012-11-22)
parents 66c2c41d6b8e
children f0527de6dfb7
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java	Thu Nov 22 14:00:50 2012 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java	Thu Nov 22 14:24:44 2012 +0200
     1.3 @@ -211,13 +211,12 @@
     1.4       	String element1 = splits[0].substring(++i1);
     1.5       	String element2 = splits[1].substring(0,i2);
     1.6       	//System.out.println("element2"+element2);
     1.7 -     	String[] splash2 = splits[1].split("]");
     1.8          DateFormat dateformat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
     1.9                  DateFormat.SHORT);
    1.10       	int syn = element1.indexOf('+');
    1.11       	//System.out.println("element1 = "+element1);
    1.12       	String startDate = element1.substring(0,syn);
    1.13 -    	syn = element1.indexOf('+');
    1.14 +    	syn = element2.indexOf('+');
    1.15       	String endDate = element2.substring(0,syn);
    1.16       	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    1.17       	Date start = format.parse(startDate);