]> source.dussan.org Git - archiva.git/commitdiff
Fixing time zone issue
authorMartin Stockhammer <martin_s@apache.org>
Fri, 15 Nov 2019 19:05:15 +0000 (20:05 +0100)
committerMartin Stockhammer <martin_s@apache.org>
Fri, 15 Nov 2019 19:05:15 +0000 (20:05 +0100)
archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java

index 718a3fa5e831b5386099e883d6da2cf97758a241..27008c314361840dce6af26f35cefa5d4e7a1486 100644 (file)
@@ -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;