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

Unified Diff: appengine/swarming/ui/res/imp/tasklist/task-list-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/tasklist/task-list-data.html
diff --git a/appengine/swarming/ui/res/imp/tasklist/task-list-data.html b/appengine/swarming/ui/res/imp/tasklist/task-list-data.html
index 1b3b83be9094870105fe15277b19058fe088beff..be595be1bd5b57d9390e3f3b653d6cacf3766610 100644
--- a/appengine/swarming/ui/res/imp/tasklist/task-list-data.html
+++ b/appengine/swarming/ui/res/imp/tasklist/task-list-data.html
@@ -250,10 +250,7 @@
t.tagMap = tagMap;
TIMES.forEach(function(time) {
- if (t[time]) {
- t[time] = new Date(t[time]);
- t["human_"+time] = sk.human.localeTime(t[time]);
- }
+ swarming.sanitizeAndHumanizeTime(t, time);
});
// Running tasks have no duration set, so we can figure it out.
if (!t.duration && t.state === this.RUNNING && t.started_ts){

Powered by Google App Engine
This is Rietveld 408576698