TimeEntries spent_on date display fix.

The detail view of logged time entries does not show the logged date
(spent_on), but instead displays the current time.

Using the date directive as an element tag with date-value set
seems to fix the issue.

Copy of https://github.com/opf/openproject/pull/2156 for release/4.0.