Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Make the QRCode text match the official one, fix small QR code size
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPoupa committed Oct 30, 2020
1 parent 3bcf441 commit f0eda5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public void setDate() {

travelDateInput.setText(currentDate);

String currentTime = String.format("%02d", currentHour) + ':' + String.format("%02d", currentMinute);
String currentTime = String.format("%02d", currentHour) + 'h' + String.format("%02d", currentMinute);
attestation.setCurrentTime(currentTime);

travelHourInput.setText(currentTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ protected void fillForm() throws IOException, DocumentException {
protected String getQrCodeText() {
return "Cree le: " + attestation.getCurrentDate() + " a " + attestation.getCurrentTime() + ";\n Nom: " + attestation.getLastName() + ";\n Prenom: " + attestation.getSurname() + ";\n " +
"Naissance: " + attestation.getBirthDate() + " a " + attestation.getBirthPlace() + ";\n Adresse: " + attestation.getFullAddress() + ";\n " +
"Sortie: " + attestation.getTravelDate() + " a " + attestation.getTravelHour() + ";\n Motifs: " + attestation.getMotivesQrCode();
"Sortie: " + attestation.getTravelDate() + " a " + attestation.getHour() + ":" + attestation.getMinute() + ";\n Motifs: " + attestation.getMotivesQrCode();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public abstract class AttestationGenerator {
this.context = context;
this.attestation = attestation;
setDates();
smallQrCodeSize = 92;
smallQrCodeSize = 100;
}

/**
Expand Down

0 comments on commit f0eda5c

Please sign in to comment.