From e05b31e19c61e124a035014ca60dcc31011b178e Mon Sep 17 00:00:00 2001 From: Traines Date: Tue, 17 Dec 2024 20:26:48 +0000 Subject: [PATCH] fix laterThan/earlierThan --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 327d9c5b..9d5e3e24 100644 --- a/index.js +++ b/index.js @@ -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) {