| Index: appengine/swarming/ui/res/imp/taskpage/task-page-data.html
|
| diff --git a/appengine/swarming/ui/res/imp/taskpage/task-page-data.html b/appengine/swarming/ui/res/imp/taskpage/task-page-data.html
|
| index e3bac800ee62720b22bcdca4366cd2151df0ad09..9c0ce2a101111de096357fef3434be5f88b6561a 100644
|
| --- a/appengine/swarming/ui/res/imp/taskpage/task-page-data.html
|
| +++ b/appengine/swarming/ui/res/imp/taskpage/task-page-data.html
|
| @@ -169,10 +169,7 @@
|
| });
|
|
|
| TIMES.forEach(function(time) {
|
| - if (request[time]) {
|
| - request[time] = new Date(request[time]);
|
| - request["human_"+time] = sk.human.localeTime(request[time]);
|
| - }
|
| + swarming.sanitizeAndHumanizeTime(request, time);
|
| });
|
| return request;
|
| },
|
| @@ -183,10 +180,7 @@
|
| }
|
| var now = new Date();
|
| TIMES.forEach(function(time) {
|
| - if (result[time]) {
|
| - result[time] = new Date(result[time]);
|
| - result["human_"+time] = sk.human.localeTime(result[time]);
|
| - }
|
| + swarming.sanitizeAndHumanizeTime(result, time);
|
| });
|
| // Running tasks have no duration set, so we can figure it out.
|
| if (!result.duration && result.state === this.RUNNING && result.started_ts){
|
|
|