Commit f2bc131 1 parent e710fdd commit f2bc131 Copy full SHA for f2bc131
File tree 1 file changed +3
-1
lines changed
front/src/applications/operationalStudies/components/MacroEditor
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,8 @@ const createTrainSchedulePayload = async ({
227
227
) ;
228
228
const isNonStopTransit = transition ?. isNonStopTransit ?? false ;
229
229
230
+ // Note that arrival is the time the train arrives at the node
231
+ // and departure is the time the train leaves the node
230
232
let arrival = getTimeLockDate ( section . targetArrival , startTimeLock , startDate ) ;
231
233
const departure = nextSection
232
234
? getTimeLockDate ( nextSection . sourceDeparture , startTimeLock , startDate )
@@ -242,7 +244,7 @@ const createTrainSchedulePayload = async ({
242
244
at : `${ section . targetNodeId } -${ index + 1 } ` ,
243
245
arrival : formatDateDifferenceFrom ( startDate , arrival ) ,
244
246
stop_for :
245
- departure && ! isNonStopTransit ? formatDateDifferenceFrom ( departure , arrival ) : null ,
247
+ departure && ! isNonStopTransit ? formatDateDifferenceFrom ( arrival , departure ) : null ,
246
248
} ;
247
249
} ) ;
248
250
You can’t perform that action at this time.
0 commit comments