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.
pull/2157/head
Oliver Günther 10 years ago committed by Jens Ulferts
parent 40504deb12
commit a0a98476f3
  1. 2
      app/views/timelog/_list.html.erb

@ -42,7 +42,7 @@ See doc/COPYRIGHT.rdoc for more details.
</thead>
<tbody>
<tr class="time-entry" ng-repeat="timeEntry in timeEntries" ng-class-even="'even'" ng-class-odd="'odd'">
<td class="spent_on" date="timeEntry.spent_on"></td>
<td class="spent_on"><date date-value="timeEntry.spent_on"></date></td>
<td class="user"><a ng-href="{{PathHelper.userPath(timeEntry.user.id)}}">{{timeEntry.user.name}}</a></td>
<td class="activity">{{timeEntry.activity.name}}</td>
<td class="project"><a ng-href="{{PathHelper.projectPath(timeEntry.project.id)}}">{{timeEntry.project.name}}</a></td>

Loading…
Cancel
Save