-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style/date format in french #1173
Conversation
👋 Version 3.30.1-SNAPSHOT deployed on docker hub |
👋 Version 3.30.1-SNAPSHOT.1 deployed on docker hub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposition de refacto @RemiVerriez
@@ -158,39 +162,87 @@ private void createFormatControlsForDatepicker(Datepicker datepicker) { | |||
// of the first control is displayed. | |||
} | |||
|
|||
private static final Logger logger = LoggerFactory.getLogger(LunaticAddControlFormat.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pas besoin de créer un logger il y en avait déjà un dans la classe avec l'annotation lombok @Slf4j
* refactor: dates validation and formatting * chore: modifier and typos * refactor: inner class factory and result to record * refactor: oopsies * test: unit test for iso 8601 formatter * refactor: optional instead of null * chore: fix typo in javadoc * refactor: compile year pattern only once
|
👋 Version 3.31.1-SNAPSHOT deployed on docker hub |
Ajustement des contrôles pour que le format des dates dans les messages aux utilisateurs soit français/européen : "DD/MM/AAAA" au lieu de "AAAA-MM-DD". Le contrôle en lui-même demeure au format "AAAA-MM-DD".
Renforcement des exceptions et warnings concernant le format d'entrée des dates min et max : les formats différents de AAAA, AAAA-MM, ou AAAA-MM-JJ ne sont pas considérés. La date est alors ignorée et un "null" est retourné.