fix driverTime in journey item
This commit is contained in:
parent
ffeb009497
commit
53df6183bd
|
@ -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')}`;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue