mick.lynch
(Mick Lynch)
November 6, 2019, 12:07am
42
I’ve been doing some investigation and found that my locale on the AWS server was set to:
$ locale
LANG=C.UTF-8
I changed the locale it to en_GB
and en_CA
but it didn’t help. Currently, my locale is set to:
$ locale
LANG=en_CA.utf8
LANGUAGE=
LC_CTYPE="en_CA.utf8"
LC_NUMERIC="en_CA.utf8"
LC_TIME="en_CA.utf8"
LC_COLLATE="en_CA.utf8"
LC_MONETARY="en_CA.utf8"
LC_MESSAGES="en_CA.utf8"
LC_PAPER="en_CA.utf8"
LC_NAME="en_CA.utf8"
LC_ADDRESS="en_CA.utf8"
LC_TELEPHONE="en_CA.utf8"
LC_MEASUREMENT="en_CA.utf8"
LC_IDENTIFICATION="en_CA.utf8"
LC_ALL=
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 5:34am
43
In your Birthdate
field, after the date picker drop down closes, can you change the year from 19
to 2019
by directly typing into that text box and see if it works?
mick.lynch
(Mick Lynch)
November 6, 2019, 1:36pm
44
When I try to type in the year (see below):
I get a different Error:
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 2:13pm
45
On the same screen/page or a different one?
mick.lynch
(Mick Lynch)
November 6, 2019, 4:37pm
46
It is on a different screen.
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 4:55pm
47
What is the url of that screen?
mick.lynch
(Mick Lynch)
November 6, 2019, 5:11pm
48
Yes, here is the URL of the error screen:
http://ec2-63-***-***.eu-west-1.compute.amazonaws.com:8080/openmrs/admin/person/addPerson.htm?addName=Test+Patient&addBirthdate=03%2F11%2F1980&addAge=&addGender=M&personType=patient&viewType=shortEdit
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 6:10pm
49
When you view your page source, what value is assigned to the js variable? jsDateFormat
mick.lynch
(Mick Lynch)
November 6, 2019, 6:43pm
50
dkayiwa:
jsDateFormat
var jsDateFormat = 'dd/mm/y';
var jsTimeFormat = 'hh:mm';
var jsLocale = 'en_GB'
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 6:49pm
51
And how about on your local instance?
mick.lynch
(Mick Lynch)
November 6, 2019, 7:02pm
52
On my local machine:
var jsDateFormat = 'dd/mm/yyyy';
var jsTimeFormat = 'hh:mm';
var jsLocale = 'en_GB';
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 7:11pm
53
Is there any reason why you are using the legacyui instead of the new one like this? https://demo.openmrs.org
mick.lynch
(Mick Lynch)
November 6, 2019, 7:15pm
54
No reason, how can I switch to the new one? Can I just install it as an OMOD module? I installed OpenMRS UI Framework 3.15.0
but not sure how to switch from LegacyUI.
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 7:22pm
55
Just install the reference application https://openmrs.org/download/
mick.lynch
(Mick Lynch)
November 6, 2019, 7:23pm
56
I have made some changes to the code of openmrs-core
to test a new Audit functionality. So the reference application won’t have my changes.
dkayiwa
(Daniel Kayiwa)
November 6, 2019, 7:33pm
57
Can’t you put your changes in a module?
mick.lynch
(Mick Lynch)
November 6, 2019, 7:39pm
58
Yes, I can try that. My changes were just for a quick demo so didn’t want to invest too much time with creating OMODs.
mick.lynch
(Mick Lynch)
November 12, 2019, 8:50pm
59
Still struggling with the locales on AWS. However, I noticed that if I change the language to Spanish, then the date locale allows me to use the datepicker.
dkayiwa
(Daniel Kayiwa)
November 13, 2019, 6:52am
60
How does the date get displayed after closing the date picker, when you switch to Spanish?
mick.lynch
(Mick Lynch)
November 13, 2019, 7:19pm
61
In English (United Kingdom):
In Spanish: