diff --git a/hollow-diff-ui/src/main/java/com/netflix/hollow/diffview/effigy/HollowEffigyFactory.java b/hollow-diff-ui/src/main/java/com/netflix/hollow/diffview/effigy/HollowEffigyFactory.java index 4c2f800c22..e79d429c68 100644 --- a/hollow-diff-ui/src/main/java/com/netflix/hollow/diffview/effigy/HollowEffigyFactory.java +++ b/hollow-diff-ui/src/main/java/com/netflix/hollow/diffview/effigy/HollowEffigyFactory.java @@ -30,6 +30,7 @@ import com.netflix.hollow.core.schema.HollowObjectSchema; import com.netflix.hollow.core.schema.HollowObjectSchema.FieldType; import com.netflix.hollow.diffview.effigy.HollowEffigy.Field; +import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Base64; import java.util.Date; @@ -39,6 +40,8 @@ public class HollowEffigyFactory { + private static final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS z yyyy"); + private final Base64.Encoder base64 = Base64.getEncoder(); private final Map fieldMemoizer = new HashMap(); @@ -111,7 +114,7 @@ List createObjectFields(HollowEffigy effigy) { case LONG: long longVal = typeDataAccess.readLong(effigy.ordinal, i); if(longVal != Long.MIN_VALUE && "Date".equals(typeDataAccess.getSchema().getName())) - fieldValue = new Date(longVal).toString(); + fieldValue = simpleDateFormat.format(new Date(longVal)); else fieldValue = Long.valueOf(typeDataAccess.readLong(effigy.ordinal, i)); break;