Skip to content

Commit

Permalink
Fix release date field
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Delporte committed Apr 17, 2024
1 parent e00b947 commit e55e666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ This service provides the following end-points on https://api.pi4j.com:
* `/api/docs/pi4j`
* `/swagger-ui/index.html`
* APIs
* Can
be [tested on Postman](https://www.postman.com/frankdelportebe/workspace/pi4j-api/collection/34333643-2b15a4b6-9c0d-4b5f-9c4c-375139cad3c5).
* Service
* `/api/service/actual`
* `/api/service/board`
* `/api/service/memory`
* Raspberry Pi Info
* `/api/raspberrypi/board`
* `/api/raspberrypi/board/MODEL`
* `/api/raspberrypi/board/{MODEL}`
* e.g. `/api/raspberrypi/board/MODEL_4_B`

### Build and distribute with GitHub Actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ private void showBoard(BoardModel boardModel) {
holder.add(new H3("Board info"));

holder.add(getLabelValue("Board type", boardModel.getBoardType().name()));
holder.add(getLabelValue("Released", boardModel.getReleaseDate().getMonth().getDisplayName(TextStyle.FULL, Locale.UK))
+ " " + boardModel.getReleaseDate().getYear());
var formattedDate = boardModel.getReleaseDate().getMonth().getDisplayName(TextStyle.FULL, Locale.UK)
+ " " + boardModel.getReleaseDate().getYear();
holder.add(getLabelValue("Released", formattedDate));
holder.add(getLabelValue("Model", boardModel.getModel().name()));
holder.add(getLabelValue("Header version", boardModel.getHeaderVersion().getLabel()));
holder.add(getLabelValue("Release date", boardModel.getReleaseDate().toString()));
Expand Down

0 comments on commit e55e666

Please sign in to comment.