[MNG-5907] org.apache.maven.repository.internal.RemoteSnapshotMetadataTest fails starting at midnight

Added missing import.
This commit is contained in:
Michael Osipov 2015-10-10 16:03:46 +02:00
parent 316298e529
commit 2ec27257b4
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ package org.apache.maven.model.interpolation;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Properties;
import java.util.TimeZone;
@ -61,6 +62,7 @@ public class MavenBuildTimestamp
time = new Date();
}
SimpleDateFormat dateFormat = new SimpleDateFormat( timestampFormat );
dateFormat.setCalendar( new GregorianCalendar() );
dateFormat.setTimeZone( DEFAULT_BUILD_TIME_ZONE );
formattedTimestamp = dateFormat.format( time );
}