diff options
author | Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> | 2017-09-25 22:58:12 +0300 |
---|---|---|
committer | Charles Hacskaylo <charles.f.hacskaylo@nasa.gov> | 2017-09-25 22:58:12 +0300 |
commit | 423c4cf0c1a8c3d4b78786341abf66dd20cdb414 (patch) | |
tree | cf48a91b5c8a4fe88bbbdfe24e8dee41da790f4a | |
parent | 8754c438ccb8b1333dd9dd79fe0aaf5e8b941c06 (diff) |
Move location of toUTCString()bug-1730
Fixes #1730
Moved application of toUTCString() from the controller to
the view markup to allow correct sorting;
-rw-r--r-- | platform/features/listview/res/templates/listview.html | 4 | ||||
-rw-r--r-- | platform/features/listview/src/controllers/ListViewController.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/platform/features/listview/res/templates/listview.html b/platform/features/listview/res/templates/listview.html index bde831dae..d39bc8beb 100644 --- a/platform/features/listview/res/templates/listview.html +++ b/platform/features/listview/res/templates/listview.html @@ -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> diff --git a/platform/features/listview/src/controllers/ListViewController.js b/platform/features/listview/src/controllers/ListViewController.js index 3dd99bb02..bcc4309f3 100644 --- a/platform/features/listview/src/controllers/ListViewController.js +++ b/platform/features/listview/src/controllers/ListViewController.js @@ -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') |