mirror of https://github.com/apache/maven.git
merge r499763 from branch - add methods to repository metadata class
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499790 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8831e55e78
commit
e5644518bd
|
@ -226,10 +226,15 @@
|
||||||
<code>
|
<code>
|
||||||
public void updateTimestamp()
|
public void updateTimestamp()
|
||||||
{
|
{
|
||||||
java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" );
|
setLastUpdatedTimestamp( new java.util.Date() );
|
||||||
java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" );
|
}
|
||||||
fmt.setTimeZone( timezone );
|
|
||||||
setLastUpdated( fmt.format( new java.util.Date() ) );
|
public void setLastUpdatedTimestamp( java.util.Date date )
|
||||||
|
{
|
||||||
|
java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" );
|
||||||
|
java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" );
|
||||||
|
fmt.setTimeZone( timezone );
|
||||||
|
setLastUpdated( fmt.format( date ) );
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
</codeSegment>
|
</codeSegment>
|
||||||
|
|
Loading…
Reference in New Issue