Skip to content

Conversation

TheSnoozer
Copy link
Collaborator

#674: parse 'project.build.outputTimestamp' formatted as ISO 8601

Context

Contributor Checklist

  • Added relevant integration or unit tests to verify the changes
  • Update the Readme or any other documentation (including relevant Javadoc)
  • Ensured that tests pass locally: mvn clean package
  • Ensured that the code meets the current checkstyle coding style definition: mvn clean verify -Pcheckstyle -Dmaven.test.skip=true -B

@Test
@Parameters(method = "parametersParseOutputTimestamp")
public void testParseOutputTimestamp(String input, Instant expected) {
Date actual = GitCommitIdMojo.parseOutputTimestamp(input);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests fail with:

TimeZone.setDefault(TimeZone.getTimeZone("America/Sao_Paulo"));

@TheSnoozer TheSnoozer changed the title #674: parse 'project.build.outputTimestamp' formatted as ISO 8601 #674: change timeformat from RFC822 ISO 8601 to support maven's reproducible build feature Feb 24, 2024
@TheSnoozer TheSnoozer changed the title #674: change timeformat from RFC822 ISO 8601 to support maven's reproducible build feature #674: change timeformat from RFC822 to ISO 8601 to support maven's reproducible build feature Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant