airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject git commit: fixing timestamp issue while saving data - AIRAVATA-1062
Date Fri, 07 Mar 2014 16:04:25 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 83dd7b0c4 -> 3dd2bf000


fixing timestamp issue while saving data - AIRAVATA-1062


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/3dd2bf00
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/3dd2bf00
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/3dd2bf00

Branch: refs/heads/master
Commit: 3dd2bf00087589a3849d0db479c5c6b216017ad9
Parents: 83dd7b0
Author: chathuri <chathuri@apache.org>
Authored: Fri Mar 7 11:04:15 2014 -0500
Committer: chathuri <chathuri@apache.org>
Committed: Fri Mar 7 11:04:15 2014 -0500

----------------------------------------------------------------------
 .../persistance/registry/jpa/impl/ExperimentRegistry.java         | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/3dd2bf00/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
index 85beb7f..60de192 100644
--- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
+++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
@@ -2485,6 +2485,9 @@ public class ExperimentRegistry {
     }
 
     public Timestamp getTime(long time) {
+        if (time == 0){
+          return getCurrentTimestamp();
+        }
         return new Timestamp(time);
     }
 }


Mime
View raw message