Pull request #140: RED-2900: Fixed wrong mapping of comments date

Merge in RED/persistence-service from RED-2900-cd to master

* commit '9f4856bab743b7fda3caf67434f93b73357fde93':
  RED-2900: Fixed wrong mapping of comments date
This commit is contained in:
Dominique Eiflaender 2021-12-02 14:06:44 +01:00
commit 614528a6be

View File

@ -641,7 +641,7 @@ public class MigrationService {
.fileId(comment.getFileId())
.annotationId(comment.getAnnotationId())
.user(comment.getUser())
.date(OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS))
.date(comment.getDate())
.build();
commentRepository.save(commentEntity);