Repository: ambari Updated Branches: refs/heads/trunk de1a98410 -> 06c56b11d
AmbariAMBARI-5393. Stop using App.get('currentServerTime'). We should use App.dateTime() only. (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/06c56b11 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/06c56b11 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/06c56b11 Branch: refs/heads/trunk Commit: 06c56b11da7bc83068b4272d8b35a8e7a3316102 Parents: de1a984 Author: Alex Antonenko <hiv...@gmail.com> Authored: Tue Apr 8 16:56:08 2014 +0300 Committer: Alex Antonenko <hiv...@gmail.com> Committed: Tue Apr 8 17:01:42 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/models/jobs/job.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/06c56b11/ambari-web/app/models/jobs/job.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/models/jobs/job.js b/ambari-web/app/models/jobs/job.js index 09aa261..44142fc 100644 --- a/ambari-web/app/models/jobs/job.js +++ b/ambari-web/app/models/jobs/job.js @@ -58,7 +58,7 @@ App.AbstractJob = DS.Model.extend({ var startTime = this.get('startTime'); var endTime = this.get('endTime'); if(endTime < startTime || endTime == undefined) { - endTime = App.get('currentServerTime'); + endTime = App.dateTime(); } return dateUtils.duration(startTime, endTime); }.property('startTime', 'endTime'),