aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-model
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-08-20 20:08:49 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-08-20 20:08:49 +0200
commit379a72c3b7ea9d6474f71c3d1cbffa98765af8d9 (patch)
tree459029d69e82ab5a558fa45d92f3e880a8263273 /archiva-modules/metadata/metadata-model
parent7a5bc65de4877f79b7c8ff30fc4f77976cce46cb (diff)
downloadarchiva-379a72c3b7ea9d6474f71c3d1cbffa98765af8d9.tar.gz
archiva-379a72c3b7ea9d6474f71c3d1cbffa98765af8d9.zip
Changing time parameter
Diffstat (limited to 'archiva-modules/metadata/metadata-model')
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java
index c4da249ea..a26167c86 100644
--- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java
+++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java
@@ -20,6 +20,7 @@ package org.apache.archiva.metadata.model;
*/
import javax.xml.bind.annotation.XmlRootElement;
+import java.time.ZonedDateTime;
import java.util.Date;
/**
@@ -96,7 +97,7 @@ public class ArtifactMetadata
/**
* When the artifact was found in the repository storage and added to the metadata content repository.
*/
- private Date whenGathered;
+ private ZonedDateTime whenGathered;
public String getId()
{
@@ -143,7 +144,7 @@ public class ArtifactMetadata
this.fileLastModified = new Date( fileLastModified );
}
- public void setWhenGathered( Date whenGathered )
+ public void setWhenGathered( ZonedDateTime whenGathered )
{
this.whenGathered = whenGathered;
}
@@ -158,7 +159,7 @@ public class ArtifactMetadata
this.sha1 = sha1;
}
- public Date getWhenGathered()
+ public ZonedDateTime getWhenGathered()
{
return whenGathered;
}
@@ -269,7 +270,7 @@ public class ArtifactMetadata
{
return false;
}
- if ( whenGathered != null ? !whenGathered.equals( that.whenGathered ) : that.whenGathered != null )
+ if ( whenGathered != null ? !whenGathered.toInstant().equals( that.whenGathered.toInstant() ) : that.whenGathered != null )
{
return false;
}