Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Unified Diff: appengine/swarming/ui/res/imp/taskpage/task-page-data.html

Issue 2832423003: Fix Swarming UI timezone bug (Closed)
Patch Set: Fix copy-pasta and use sk.human Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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){

Powered by Google App Engine
This is Rietveld 408576698