A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Hello, I'm importing comments from a wordpress blog and everything is working as expected except the comment's `Created` property which seems to get overriden to the current time (in our scheduled job). The following lines create the comment, the `epiComment` object has a `Created` DateTime in 2011 but the `addedComment` is returned with the current time:
```
var epiComment = new Epi.Comment(commentId, parent, authorRef, comment.Content, true,
ancestors, comment.Date, hasChildren, hasChildren);
if(!string.IsNullOrWhiteSpace(comment.AuthorEmail))
{
var commentEx = new BlogCommentExtension(comment.AuthorEmail);
var addedComment = _commentService.Add(epiComment, commentEx);
}
else
{
_commentService.Add(epiComment);
}
```