I am storing the entity audit log to mongodb using javers. Each time I make a commit to mongodb, Javers saves the timestamp as String. But I want to save it as LocalDateTime Object. Is there any way to do this?
public <T> void saveAuditLog(T entity) throws TokenDecryptionException {
LogMetaDataDTO logMetaDataDTO = this.logFactory.createApplicationLogMetaData();
try {
String author = this.logHelperService.getCurrentUserIdFromRequestContext();
this.javers.commit(author == null ? "" : author, entity, this.auditLogUtils.convertObjectToMap(logMetaDataDTO));
logger.debug("Saved to audit log!");
} catch (Exception var4) {
throw var4;
}
}