Compare commits

...

1 Commits

Author SHA1 Message Date
423c4cf0c1 Move location of toUTCString()
Fixes #1730
Moved application of toUTCString() from the controller to
the view markup to allow correct sorting;
2017-09-25 12:58:12 -07:00
2 changed files with 4 additions and 4 deletions

View File

@ -80,8 +80,8 @@
</div>
</td>
<td>{{child.type}}</td>
<td>{{child.persisted}}</td>
<td>{{child.modified}}</td>
<td>{{child.persisted.toUTCString()}}</td>
<td>{{child.modified.toUTCString()}}</td>
</tr>
</tbody>
</table>

View File

@ -52,10 +52,10 @@ define(function () {
type: child.getCapability('type').getName(),
persisted: new Date(
child.getModel().persisted
).toUTCString(),
),
modified: new Date(
child.getModel().modified
).toUTCString(),
),
asDomainObject: child,
location: child.getCapability('location'),
action: child.getCapability('action')