mddubey
(Mritunjay Dubey)
June 3, 2020, 12:14pm
1
Hello Everyone,
We are using encounterdate
tag in our html forms and we have figured out that it is showing the date-format from english
locale even when the form is being viewed in french.
Please check the screenshot below. The format is shown as dd/mm/yyyy
.
From a quick debugging we were able to figure out if we replace this line in DateWidget.java
sb.append(" (" + dateFormat().toPattern().toLowerCase() + ")");
With
sb.append(" (" + dateFormat().toLocalizedPattern().toLowerCase() + ")");
It whould work fine.
Will it be a good idea to make this change or do we see any backward compatibility issues with this?
Please let us know.
CC: @dkayiwa @mogoodrich @mksd @herbert24 @rrameshbtech @vasanth2019
1 Like
herbert24
(Herbert Yiga)
June 4, 2020, 7:23am
2
i think you can go on to create a ticket for this and we have it fixed
mddubey
(Mritunjay Dubey)
June 4, 2020, 8:19am
3
Thanks @herbert24 for your reply.
By mistake I created the card in FM2 project, could you please help me moving this to HFE project.
https://issues.openmrs.org/browse/FM2-210
1 Like
mddubey
(Mritunjay Dubey)
June 4, 2020, 10:38am
4
Thanks @dkayiwa for moving the card to the right project.
I have raised a PR here (https://github.com/openmrs/openmrs-module-htmlformentry/pull/185 )
I have assigned the card to myself however was not able to move it from Need Assessment
. Could you please help with that.
Thanks.
1 Like
mddubey
(Mritunjay Dubey)
June 5, 2020, 3:39am
5
Thanks @dkayiwa ,
Moved the card to Code Review (Initial)
.
2 Likes