Strabon
changeset 1186:af08fcd44b18 temporals
fixed bug that occured sometimes when projecting the valid time of a triple that is a timestamp and takes part in a temporal operation in the filter clause of the query
author | Konstantina Bereta <Konstantina.Bereta@di.uoa.gr> |
---|---|
date | Wed Jun 19 16:05:08 2013 +0300 (2013-06-19) |
parents | 2edfddc24e0d |
children | da14a303bf2c |
files | postgis/src/main/java/org/openrdf/sail/postgis/iteration/PostGISBindingIteration.java |
line diff
1.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/iteration/PostGISBindingIteration.java Sun May 12 14:52:16 2013 +0300 1.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/iteration/PostGISBindingIteration.java Wed Jun 19 16:05:08 2013 +0300 1.3 @@ -67,12 +67,11 @@ 1.4 URI datatype = null; 1.5 String[] periods = temp.substring(++i, j).split(","); 1.6 1.7 - SimpleDateFormat postgres = new SimpleDateFormat("yyyy-MM-DD HH:mm:ss"); 1.8 - SimpleDateFormat xsd = new SimpleDateFormat("yyyy-MM-DD'T'HH:mm:ss"); 1.9 + SimpleDateFormat postgres = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 1.10 + SimpleDateFormat xsd = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); 1.11 Calendar now = new GregorianCalendar().getInstance(); 1.12 Calendar cal = new GregorianCalendar(); 1.13 try { 1.14 - 1.15 String newStart = xsd.format(postgres.parse(periods[0])).toString(); 1.16 String newEnd = xsd.format(postgres.parse(periods[1])).toString(); 1.17 if(newStart.equalsIgnoreCase(newEnd))