diff options
| author | Derf Null <derf@finalrewind.org> | 2023-05-01 10:06:30 +0200 | 
|---|---|---|
| committer | Derf Null <derf@finalrewind.org> | 2023-05-01 10:06:30 +0200 | 
| commit | e4a07dc06cca76aae0a8174c564469527a4dd818 (patch) | |
| tree | 88cf71c6992a3eed5745201e6dca4e22d396aabb /lib | |
| parent | c8624786456b5a1dcd9adecde34a819400b876ae (diff) | |
journey: show times of intermediate stops, if available
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index bf8c013..01e904a 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -626,6 +626,13 @@ sub get {  			$ref->{checkout}      = epoch_to_dt( $ref->{checkout_ts} );  			$ref->{sched_arrival} = epoch_to_dt( $ref->{sched_arr_ts} );  			$ref->{rt_arrival}    = epoch_to_dt( $ref->{rt_arr_ts} ); +			for my $stop ( @{ $ref->{route} } ) { +				for my $k (qw(rt_arr rt_dep sched_arr sched_dep)) { +					if ( $stop->[2]{$k} ) { +						$stop->[2]{$k} = epoch_to_dt( $stop->[2]{$k} ); +					} +				} +			}  		}  		if ( $opt{verbose} ) {  | 
