Skip to content

Commit

Permalink
SHIBUI-1699
Browse files Browse the repository at this point in the history
Correcting date format output for versions to match the date format supplied to the UI in the rest of the application


Former-commit-id: b407e5bf3268323f302092f92f19e8b828953181
  • Loading branch information
chasegawa committed Aug 16, 2022
1 parent 90fa019 commit c810e20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public class Version implements Serializable {

private String creator;

@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS")
private ZonedDateTime date;

private static final long serialVersionUID = 3429591830989243421L;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class VersionJsonSerializationBasicTests extends Specification {
{
"id": "2",
"creator": "kramer",
"date": "2019-05-20T15:00:00.574Z"
"date": "2019-05-20T15:00:00.574000"
}
"""
def expectedJsonMap = jsonSlurper.parseText(expectedJson)
Expand All @@ -40,4 +40,4 @@ class VersionJsonSerializationBasicTests extends Specification {
deSerializedJsonMap.id == expectedJsonMap.id
deSerializedJsonMap.creator == expectedJsonMap.creator
}
}
}

0 comments on commit c810e20

Please sign in to comment.