Fix end_time field (issue #1804)