Unverified Commit 19871c2f authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

JourneyAtStop: TO_JSON: Serialize DateTime to epoch

parent 546858a4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -66,6 +66,12 @@ sub TO_JSON {

	my $ret = { %{$self} };

	for my $k (qw(sched_dep rt_dep dep sched_arr rt_arr arr)) {
		if ( $ret->{$k} ) {
			$ret->{$k} = $ret->{$k}->epoch;
		}
	}

	return $ret;
}