[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: * belongs to last_check commit

git at icinga.org git at icinga.org
Tue Nov 15 13:36:49 CET 2011


Module: icinga-web
Branch: mfriedrich/fixes
Commit: ef0cf521a6eac1d9b08e419e4d5d294c2d76d15e
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=ef0cf521a6eac1d9b08e419e4d5d294c2d76d15e

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Nov 15 00:56:58 2011 +0100

* belongs to last_check commit
* see 3ad734f14ab50b2a675444221bc07c3483d66395

---

 app/modules/AppKit/lib/js/AppKitUtil.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/AppKit/lib/js/AppKitUtil.js b/app/modules/AppKit/lib/js/AppKitUtil.js
index 54f199f..22a8645 100755
--- a/app/modules/AppKit/lib/js/AppKitUtil.js
+++ b/app/modules/AppKit/lib/js/AppKitUtil.js
@@ -215,7 +215,7 @@ AppKit.util.Date = (function() {
        return {
            getElapsedString: function(value) {
                 var now = new Date();
-                var valueDate = new Date(value);
+                var valueDate = Date.parseDate(value,'Y-m-d H:i:s');
                 var elapsed = parseInt(now.getElapsed(valueDate)/1000,10);
 
                 var dd = parseInt(elapsed/time.day,10);





More information about the icinga-checkins mailing list