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

Journey: Fix TO_JSON

parent b64e1979
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -80,6 +80,14 @@ sub TO_JSON {

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

	delete $ret->{strptime_obj};

	for my $k (qw(day)) {
		if ( $ret->{$k} ) {
			$ret->{$k} = $ret->{$k}->epoch;
		}
	}

	return $ret;
}