diff --git a/genie-server/src/main/resources/META-INF/resources/js/application.js b/genie-server/src/main/resources/META-INF/resources/js/application.js
index ab86aacaa98..a9ea9946f5f 100644
--- a/genie-server/src/main/resources/META-INF/resources/js/application.js
+++ b/genie-server/src/main/resources/META-INF/resources/js/application.js
@@ -172,10 +172,10 @@ define([
}).append($("", {src: '../images/genie.gif', class: 'genie-icon'}))).html();
var createdDt = new Date(applicationObj.created);
- applicationObj.createTimeFormatted = moment(createdDt).format('MM/DD/YYYY HH:mm:ss');
+ applicationObj.createTimeFormatted = moment(createdDt).utc().format('MM/DD/YYYY HH:mm:ss');
var updatedDt = new Date(applicationObj.updated);
- applicationObj.updateTimeFormatted = moment(updatedDt).format('MM/DD/YYYY HH:mm:ss');
+ applicationObj.updateTimeFormatted = moment(updatedDt).utc().format('MM/DD/YYYY HH:mm:ss');
applicationObj.formattedTags = applicationObj.tags.join("
");
@@ -233,10 +233,10 @@ define([
console.log(applicationObj);
var createdDt = new Date(applicationObj.created);
- applicationObj.createTimeFormatted = moment(createdDt).format('MM/DD/YYYY HH:mm:ss');
+ applicationObj.createTimeFormatted = moment(createdDt).utc().format('MM/DD/YYYY HH:mm:ss');
var updatedDt = new Date(applicationObj.updated);
- applicationObj.updateTimeFormatted = moment(updatedDt).format('MM/DD/YYYY HH:mm:ss');
+ applicationObj.updateTimeFormatted = moment(updatedDt).utc().format('MM/DD/YYYY HH:mm:ss');
applicationObj.formattedTags = applicationObj.tags.join("
");
diff --git a/genie-server/src/main/resources/META-INF/resources/js/cluster.js b/genie-server/src/main/resources/META-INF/resources/js/cluster.js
index ffafa7f7155..a79d1801a73 100644
--- a/genie-server/src/main/resources/META-INF/resources/js/cluster.js
+++ b/genie-server/src/main/resources/META-INF/resources/js/cluster.js
@@ -173,10 +173,10 @@ define([
}).append($("", {src: '../images/genie.gif', class: 'genie-icon'}))).html();
var createdDt = new Date(clusterObj.created);
- clusterObj.createTimeFormatted = moment(createdDt).format('MM/DD/YYYY HH:mm:ss');
+ clusterObj.createTimeFormatted = moment(createdDt).utc().format('MM/DD/YYYY HH:mm:ss');
var updatedDt = new Date(clusterObj.updated);
- clusterObj.updateTimeFormatted = moment(updatedDt).format('MM/DD/YYYY HH:mm:ss');
+ clusterObj.updateTimeFormatted = moment(updatedDt).utc().format('MM/DD/YYYY HH:mm:ss');
clusterObj.formattedTags = clusterObj.tags.join("
");
@@ -236,10 +236,10 @@ define([
console.log(clusterObj);
var createdDt = new Date(clusterObj.created);
- clusterObj.createTimeFormatted = moment(createdDt).format('MM/DD/YYYY HH:mm:ss');
+ clusterObj.createTimeFormatted = moment(createdDt).utc().format('MM/DD/YYYY HH:mm:ss');
var updatedDt = new Date(clusterObj.updated);
- clusterObj.updateTimeFormatted = moment(updatedDt).format('MM/DD/YYYY HH:mm:ss');
+ clusterObj.updateTimeFormatted = moment(updatedDt).utc().format('MM/DD/YYYY HH:mm:ss');
clusterObj.formattedTags = ck=clusterObj.tags.join("
");
diff --git a/genie-server/src/main/resources/META-INF/resources/js/command.js b/genie-server/src/main/resources/META-INF/resources/js/command.js
index 09bf0880354..8ca92b5b61f 100644
--- a/genie-server/src/main/resources/META-INF/resources/js/command.js
+++ b/genie-server/src/main/resources/META-INF/resources/js/command.js
@@ -186,10 +186,10 @@ define([
}).append($("", {src: '../images/genie.gif', class: 'genie-icon'}))).html();
var createdDt = new Date(commandObj.created);
- commandObj.createTimeFormatted = moment(createdDt).format('MM/DD/YYYY HH:mm:ss');
+ commandObj.createTimeFormatted = moment(createdDt).utc().format('MM/DD/YYYY HH:mm:ss');
var updatedDt = new Date(commandObj.updated);
- commandObj.updateTimeFormatted = moment(updatedDt).format('MM/DD/YYYY HH:mm:ss');
+ commandObj.updateTimeFormatted = moment(updatedDt).utc().format('MM/DD/YYYY HH:mm:ss');
commandObj.formattedTags = commandObj.tags.join("
");
@@ -247,10 +247,10 @@ define([
//console.log(command);
var createdDt = new Date(commandObj.created);
- commandObj.createTimeFormatted = moment(createdDt).format('MM/DD/YYYY HH:mm:ss');
+ commandObj.createTimeFormatted = moment(createdDt).utc().format('MM/DD/YYYY HH:mm:ss');
var updatedDt = new Date(commandObj.updated);
- commandObj.updateTimeFormatted = moment(updatedDt).format('MM/DD/YYYY HH:mm:ss');
+ commandObj.updateTimeFormatted = moment(updatedDt).utc().format('MM/DD/YYYY HH:mm:ss');
commandObj.formattedTags = commandObj.tags.join("
");
diff --git a/genie-server/src/main/resources/META-INF/resources/js/job.js b/genie-server/src/main/resources/META-INF/resources/js/job.js
index 3985623a1f5..6ed59b711e4 100644
--- a/genie-server/src/main/resources/META-INF/resources/js/job.js
+++ b/genie-server/src/main/resources/META-INF/resources/js/job.js
@@ -182,14 +182,13 @@ define([
}).append($("", {src: '../images/genie.gif', class: 'genie-icon'}))).html();
var startDt = new Date(jobObj.created);
- jobObj.startTimeFormatted = moment(startDt).format('MM/DD/YYYY HH:mm:ss');
+ jobObj.startTimeFormatted = moment(startDt).utc().format('MM/DD/YYYY HH:mm:ss');
var endDt = new Date(jobObj.finished);
// TODO checking against PST Epoch time. This should be changed once we fix the server side.
if (jobObj.status != 'RUNNING') {
- jobObj.endTimeFormatted = moment (endDt).format('MM/DD/YYYY HH:mm:ss');
- //jobObj.diffTimeFormatted = moment.duration(moment(endDt).diff(moment(startDt))).format("d[d] hh:mm:ss", {trim: false});
+ jobObj.endTimeFormatted = moment (endDt).utc().format('MM/DD/YYYY HH:mm:ss');
jobObj.diffTimeFormatted = moment.duration(moment(endDt).diff(moment(startDt))).format("d[d] hh[h] mm[m] ss[s]", {trim:false});
} else {
jobObj.endTimeFormatted = '';