mirror of https://github.com/apache/maven.git
[MNG-5907] org.apache.maven.repository.internal.RemoteSnapshotMetadataTest fails starting at midnight
Added missing import.
This commit is contained in:
parent
316298e529
commit
2ec27257b4
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue