fix laterThan/earlierThan

This commit is contained in:
Traines 2024-12-17 20:26:48 +00:00
parent 0e2d0e32ab
commit e05b31e19c

View file

@ -201,10 +201,9 @@ const createClient = (profile, userAgent, opt = {}) => {
// see rest.exe docs
// ushrp: Boolean(opt.startWithWalking),
};
query.anfrageZeitpunkt = profile.formatTime(profile, when);
if (journeysRef) {
query.pagingReference = journeysRef;
} else {
query.anfrageZeitpunkt = profile.formatTime(profile, when);
}
query.ankunftSuche = outFrwd ? 'ABFAHRT' : 'ANKUNFT';
if (opt.results !== null) {