From 53df6183bda8658828c060c44e7d42bbebb9d0cd Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Fri, 29 Mar 2024 11:56:23 +0100 Subject: [PATCH] fix driverTime in journey item --- .../ad/core/domain/value-objects/journey-item.value-object.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/ad/core/domain/value-objects/journey-item.value-object.ts b/src/modules/ad/core/domain/value-objects/journey-item.value-object.ts index ef0c9fd..85382ea 100644 --- a/src/modules/ad/core/domain/value-objects/journey-item.value-object.ts +++ b/src/modules/ad/core/domain/value-objects/journey-item.value-object.ts @@ -42,8 +42,8 @@ export class JourneyItem extends ValueObject { (actorTime: ActorTime) => actorTime.role == Role.DRIVER, ) as ActorTime ).firstDatetime; - return `${driverTime.getHours().toString().padStart(2, '0')}:${driverTime - .getMinutes() + return `${driverTime.getUTCHours().toString().padStart(2, '0')}:${driverTime + .getUTCMinutes() .toString() .padStart(2, '0')}`; };