fix driverTime in journey item

This commit is contained in:
Sylvain Briat 2024-03-29 11:56:23 +01:00
parent ffeb009497
commit 53df6183bd
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ export class JourneyItem extends ValueObject<JourneyItemProps> {
(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')}`;
};