File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/main/java/ldbc/snb/datagen/serializer/snb/interactive Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ Linked Data Benchmark Council (http://www.ldbcouncil.org)
45
45
46
46
import java .io .IOException ;
47
47
import java .text .SimpleDateFormat ;
48
+ import java .util .TimeZone ;
48
49
49
50
50
51
/**
@@ -72,8 +73,8 @@ public String toString() {
72
73
73
74
@ Override
74
75
public void initialize (Configuration conf , int reducerId ) throws IOException {
75
-
76
76
dateTimeFormat = new SimpleDateFormat ("yyyy-MM-dd'T'HH:mm:ss.SSSXXX" );
77
+ dateTimeFormat .setTimeZone (TimeZone .getTimeZone ("GMT" ));
77
78
int numFiles = FileNames .values ().length ;
78
79
writers = new HDFSWriter [numFiles ];
79
80
for (int i = 0 ; i < numFiles ; ++i ) {
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ Linked Data Benchmark Council (http://www.ldbcouncil.org)
50
50
51
51
import java .io .IOException ;
52
52
import java .text .SimpleDateFormat ;
53
+ import java .util .TimeZone ;
53
54
54
55
55
56
public class TurtlePersonSerializer extends PersonSerializer {
@@ -77,6 +78,7 @@ public String toString() {
77
78
78
79
public void initialize (Configuration conf , int reducerId ) throws IOException {
79
80
dateTimeFormat = new SimpleDateFormat ("yyyy-MM-dd'T'HH:mm:ss.SSSXXX" );
81
+ dateTimeFormat .setTimeZone (TimeZone .getTimeZone ("GMT" ));
80
82
int numFiles = FileNames .values ().length ;
81
83
writers = new HDFSWriter [numFiles ];
82
84
for (int i = 0 ; i < numFiles ; ++i ) {
You can’t perform that action at this time.
0 commit comments