Skip to content

Commit fbb9f60

Browse files
committed
Changed DateTime pattern
1 parent e24269a commit fbb9f60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/ldbc/socialnet/dbgen/generator/DateGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ public static String formatDateDetail(GregorianCalendar c)
161161
+prefixHour+hour+":"+prefixMinute+minute+":"+prefixSecond+second+"Z";
162162
*/
163163
c.setTimeZone(TimeZone.getTimeZone("GMT"));
164-
SimpleDateFormat gmtDateFormatter = new SimpleDateFormat("yyyy-MM-ddHH:mm:ssZ");
164+
//SimpleDateFormat gmtDateFormatter = new SimpleDateFormat("yyyy-MM-ddHH:mm:ssZ");
165+
SimpleDateFormat gmtDateFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
165166
gmtDateFormatter.setTimeZone(TimeZone.getTimeZone("GMT"));
166167
return gmtDateFormatter.format(c.getTime());
167168
}

0 commit comments

Comments
 (0)