Unverified Commit 238ada53 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Journey: support journey JSON that does not provide a date attribute

parent c8436d54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ sub new {
	my $hafas   = $opt{hafas};
	my $journey = $opt{journey};

	my $date = $journey->{date};
	my $date = $opt{date} // $journey->{date};

	my $direction = $journey->{dirTxt};
	my $jid       = $journey->{jid};