This is strange. I tested it out on demo.openmrs.org and I have verified
this error. It seems to work correctly in English (UK), English (US), and
French. It messes up the date in Portuguese, Italian, and Spanish.
Looking at the code, I see this comment I made in 2006:
<%-- TODO: FORMATDATE AND PARSEDATE ARE TERRIBLE HACKS --%>
...
<c:when test="${model.locale == 'fr' || model.locale == 'en_GB'}">
The very quick fix is to include 'pt', 'es', and 'it' in that check. We
should also refactor that code, and do some error-checking to prevent
submission of months > 12. (I thought we were already doing that
server-side...)
I created a ticket for this at https://tickets.openmrs.org/browse/TRUNK-3072.
If you'd like to see this get worked on during next week's bug-fixing
sprint, go there and vote on it.
-Darius
On Thu, Feb 23, 2012 at 8:07 AM, Eurico Jose <[email protected]> wrote:
> Hi All,
> I want to use Program feature on my OpenMRS Implementation, before going
> on production of this feature I tested with sample scenario:
> Program: ARV Program
> Workflow: ARV Care
> State: ACTIVE ARV CARE, DROPPED FROM CARE, TRANSFERRED OUT AND PATIENT DEAD
>
> And I tried to register patient state showing in table below
>
> State Since until
> ACTIVE ARV CARE 18/04/2007 10/08/2009
> DROPPED FROM CARE 10/08/2009 23/12/2010
> ACTIVE ARV CARE 23/12/2010 21/06/2011
> TRANSFERRED OUT 21/06/2011 14/12/2011
> ACTIVE ARV CARE 14/12/2011 14/02/2012
> PATIENT DEAD 14/02/2012
>
> When Logged in with user who has Default Locale English, the states are
> registered with NO ERROR on Dates and the date is showing in Portuguese
> format (See Patient_Program_State_en.png image in attaché)
>
> When Logged in with user who has Default Locale Portuguese, the states are
> registered with ERROR on Dates.
> The image (Patient_Program_State_pt_error1 attached) I tried to register
> 18/04/2007 but it became 04/06/2008
> The image (Patient_Program_State_pt_error2 attached) I tried to register
> 10/08/2009 but it became 08/10/2009
> The image (Patient_Program_State_pt_error3 attached) I tried to register
> 23/12/2010 but it became 12/11/2011
>
> *Could someone help,*
>
>
> OpenMRS
> Last Build: Dec 22 2010 08:56 AM Version: 1.7.1 Build 17223
>
>
_________________________________________
To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-implement-l" in the body
(not the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]