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, (actorTime: ActorTime) => actorTime.role == Role.DRIVER,
) as ActorTime ) as ActorTime
).firstDatetime; ).firstDatetime;
return `${driverTime.getHours().toString().padStart(2, '0')}:${driverTime return `${driverTime.getUTCHours().toString().padStart(2, '0')}:${driverTime
.getMinutes() .getUTCMinutes()
.toString() .toString()
.padStart(2, '0')}`; .padStart(2, '0')}`;
}; };