diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-11-15 20:05:15 +0100 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-11-15 20:05:15 +0100 |
commit | e41fb343bc872569b61b92bbc13be94d29e2f42a (patch) | |
tree | 1d6970ae2150a75bc17c731c3b2a1bb119774c54 /archiva-modules | |
parent | 08a51f0eff7c695a91627c779626eddaf43d9783 (diff) | |
download | archiva-e41fb343bc872569b61b92bbc13be94d29e2f42a.tar.gz archiva-e41fb343bc872569b61b92bbc13be94d29e2f42a.zip |
Fixing time zone issue
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java index 718a3fa5e..27008c314 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java +++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java @@ -68,7 +68,6 @@ public class NewArtifactsRssFeedProcessor private Logger log = LoggerFactory.getLogger( NewArtifactsRssFeedProcessor.class ); - private static final TimeZone GMT_TIME_ZONE = TimeZone.getTimeZone( "GMT" ); /** * Process the newly discovered artifacts in the repository. Generate feeds for new artifacts in the repository and @@ -93,7 +92,7 @@ public class NewArtifactsRssFeedProcessor throws FeedException { - ZonedDateTime greaterThanThisDate = ZonedDateTime.now(GMT_TIME_ZONE.toZoneId()).minusDays( + ZonedDateTime greaterThanThisDate = ZonedDateTime.now().minusDays( getNumberOfDaysBeforeNow() ).truncatedTo(ChronoUnit.SECONDS); List<ArtifactMetadata> artifacts; |