Fix for AIRAVATA-1943

Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/45fa6296
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/45fa6296
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/45fa6296

Branch: refs/heads/master
Commit: 45fa6296515eb5a422960a2bc34858eb561ddf0a
Parents: fb4c36c
Author: Nipurn Doshi <[email protected]>
Authored: Mon Jul 4 00:09:33 2016 -0700
Committer: Nipurn Doshi <[email protected]>
Committed: Mon Jul 4 00:09:33 2016 -0700

----------------------------------------------------------------------
 public/js/time-conversion.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/45fa6296/public/js/time-conversion.js
----------------------------------------------------------------------
diff --git a/public/js/time-conversion.js b/public/js/time-conversion.js
index 4146baa..04eea52 100644
--- a/public/js/time-conversion.js
+++ b/public/js/time-conversion.js
@@ -4,6 +4,8 @@
 function convertTimestamp(timestamp) {
     if( timestamp == null)
         return;
+    else
+        timestamp = $.trim( timestamp);
     if( timestamp.length <= 10)
         timestamp = timestamp * 1000;// Convert the passed timestamp to 
milliseconds    
     var d = new Date( parseInt( timestamp) ),

Reply via email to