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> </div>
</td> </td>
<td>{{child.type}}</td> <td>{{child.type}}</td>
<td>{{child.persisted}}</td> <td>{{child.persisted.toUTCString()}}</td>
<td>{{child.modified}}</td> <td>{{child.modified.toUTCString()}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

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