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,
|
||||
) 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')}`;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue