Skip to content

Commit f344f93

Browse files
authored
Add iso time for create (#230)
* add iso time for create * fix
1 parent e869f86 commit f344f93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

document-store/src/main/java/org/hypertrace/core/documentstore/mongo/MongoCollection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ private BasicDBObject prepareInsert(Key key, Document document) throws JsonProce
332332
long now = System.currentTimeMillis();
333333
BasicDBObject insertDbObject = prepareDocument(key, document, now);
334334
insertDbObject.put(CREATED_TIME, now);
335+
insertDbObject.put(LAST_UPDATE_TIMESTAMP_ISO_8601, new Date(now));
335336
return insertDbObject;
336337
}
337338

0 commit comments

Comments
 (0)