From c1bfa037bbcc93b9586939dba90eb1a01ae23bd4 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 2 Dec 2023 19:21:00 +0100 Subject: hafas-m: do not alter $stop->arr in --via mode --- bin/hafas-m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/hafas-m b/bin/hafas-m index 5b15117..2bf2e5a 100755 --- a/bin/hafas-m +++ b/bin/hafas-m @@ -514,7 +514,8 @@ for my $d (@results) { . ( $stop->arr_cancelled ? '--:--' - : $stop->arr->add( minutes => $d->delay // 0 )->strftime('%H:%M') + : $stop->arr->clone->add( minutes => $d->delay // 0 ) + ->strftime('%H:%M') ); } -- cgit v1.2.3