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

Location->TO_JSON: convert DateTime to epoch

parent e15bfec4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -116,6 +116,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;
}