mirror of
https://github.com/apache/archiva.git
synced 2025-03-09 02:10:00 +00:00
Fixing time zone issue
This commit is contained in:
parent
08a51f0eff
commit
e41fb343bc
@ -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 @@ private SyndFeed processNewArtifactsInRepo( String repoId )
|
||||
throws FeedException
|
||||
{
|
||||
|
||||
ZonedDateTime greaterThanThisDate = ZonedDateTime.now(GMT_TIME_ZONE.toZoneId()).minusDays(
|
||||
ZonedDateTime greaterThanThisDate = ZonedDateTime.now().minusDays(
|
||||
getNumberOfDaysBeforeNow()
|
||||
).truncatedTo(ChronoUnit.SECONDS);
|
||||
List<ArtifactMetadata> artifacts;
|
||||
|
Loading…
x
Reference in New Issue
Block a user