Skip to content

Commit 5dd9d4f

Browse files
committed
Cypher: Use GMT for calculating the time intervals for IC3 and IC4
endDate = startDate + durationDays
1 parent fdb3b71 commit 5dd9d4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cypher/src/main/java/org/ldbcouncil/snb/impls/workloads/cypher/CypherQueryStore.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.util.Calendar;
44
import java.util.Date;
55
import java.util.Map;
6+
import java.util.TimeZone;
67

78
import com.google.common.collect.ImmutableMap;
89

@@ -25,7 +26,7 @@ protected Converter getConverter() {
2526

2627
static protected Date addDays( Date startDate, int days )
2728
{
28-
final Calendar cal = Calendar.getInstance();
29+
final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
2930
cal.setTime( startDate );
3031
cal.add( Calendar.DATE, days );
3132
return cal.getTime();

0 commit comments

Comments
 (0)