From bd5146dce3a9310c341caf755301d3cda7b55855 Mon Sep 17 00:00:00 2001 From: Ranim Naimi <156652078+ranim-n@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:59:24 +0100 Subject: [PATCH] fix: createdAt format to ngsiLd DateTime (#1267) --- .../com/egm/stellio/search/entity/service/EntityService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)