labrinth
labrinth copied to clipboard
Version Date Published is not consistent across endpoints
Describe the bug
The version published field differs slightly between the return object given by the create version endpoint and the version object returned by the version fetch endpoint vary slightly.
Steps to reproduce
@Test
public void testProjectVersions() {
Project prj = DataUtil.fetchSampleProject(client);
ProjectVersion version = DataUtil.appendVersion(client, prj.getId());
List<ProjectVersion> vers = client.versions().getProjectVersions(prj.getSlug(),
GetProjectVersionsRequest.builder().build()).join();
assertEquals("There should only be one version!", vers.size(), 1);
System.out.println(version.getDatePublished());
System.out.println(vers.get(0).getDatePublished());
assertTrue("Versions were not identical!", version.equals(vers.get(0)));
}
(Running on Modrinth4J, more context inside the Unit Tests for Modrinth4J)
Expected behavior
Expected date published: 2023-02-02T18:17:30.088884360Z Returned date published by endpoint: 2023-02-02T18:17:30.088888Z
Additional context
No response