Skip to content

Commit

Permalink
Merge pull request #18 from or-shachar/patch-1
Browse files Browse the repository at this point in the history
making timestamp deserialization consistent
  • Loading branch information
rfscholte authored Sep 28, 2017
2 parents 9b1ca48 + 4b34ad2 commit efbe996
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ else if ( ARCHETYPE_CATALOG.matcher( path ).matches() )
cal.set( Calendar.HOUR_OF_DAY, Integer.parseInt( matcher.group( 5 ) ) );
cal.set( Calendar.MINUTE, Integer.parseInt( matcher.group( 6 ) ) );
cal.set( Calendar.SECOND, Integer.parseInt( matcher.group( 7 ) ) );
cal.set( Calendar.MILLISECOND, 0);
long timestamp = cal.getTimeInMillis();
int buildNumber = Integer.parseInt( matcher.group( 8 ) );

Expand Down Expand Up @@ -499,6 +500,7 @@ private Artifact getArtifact( DirectoryEntry parent, String name )
cal.set( Calendar.HOUR_OF_DAY, Integer.parseInt( matcher.group( 5 ) ) );
cal.set( Calendar.MINUTE, Integer.parseInt( matcher.group( 6 ) ) );
cal.set( Calendar.SECOND, Integer.parseInt( matcher.group( 7 ) ) );
cal.set( Calendar.MILLISECOND, 0);
long timestamp = cal.getTimeInMillis();
int buildNumber = Integer.parseInt( matcher.group( 8 ) );

Expand Down

0 comments on commit efbe996

Please sign in to comment.