diff --git a/search-service/src/main/kotlin/com/egm/stellio/search/entity/service/EntityService.kt b/search-service/src/main/kotlin/com/egm/stellio/search/entity/service/EntityService.kt index 30e2e08a8..992308b08 100644 --- a/search-service/src/main/kotlin/com/egm/stellio/search/entity/service/EntityService.kt +++ b/search-service/src/main/kotlin/com/egm/stellio/search/entity/service/EntityService.kt @@ -71,7 +71,7 @@ class EntityService( authorizationService.userCanCreateEntities(sub.toOption()).bind() entityQueryService.checkEntityExistence(ngsiLdEntity.id, true).bind() - val createdAt = ZonedDateTime.now(ZoneOffset.UTC) + val createdAt = ngsiLdDateTime() val attributesMetadata = ngsiLdEntity.prepareAttributes().bind() logger.debug("Creating entity {}", ngsiLdEntity.id)