Page 1 of 1

Dates and locale in the browser

Posted: Mon Jan 18, 2016 1:17 pm
by Stewart Marshall
Date fields are formatted based on the ISO language code specified in the partition language. Visual LANSA defaults to a US locale.

For non-US customers, it may be necessary to modify the ISO setting. As the locale features are compiled in to the JavaScript, you must ensure that all web pages and parts are compiled to reflect the change.

See http://docs.lansa.com/140/en/lansa801/i ... a_0093.htm for more details.

Re: Dates and locale in the browser

Posted: Wed Mar 23, 2016 3:08 am
by Jiri
Hello,
Two problems:
- The mentioned locale settings is not aplyed to 'Today' date format in date prompter (the last field at the bottom) - probably bug.
- The locale settings does not work with intrinsic function .AsDayofWeek. Is it a bug, or the values are taken from other place (*MTXT, MSGF ...?)
How we can the .AsDayOfWeek function force to use local naming?

Re: Dates and locale in the browser

Posted: Wed Mar 23, 2016 2:42 pm
by Stewart Marshall
Hi Jiri

1 - Incorrect "Today" format

Can you please report all suspected bugs to your regional help desk. This ensures that they will be recorded and handled correctly. Thanks

2 - AsDayOfWeek

Did you specify the Format parameter?

#DayofWeek := #MyDate.asDayofWeek( LongName )

The default of SYMBOL always uses the English

http://docs.lansa.com/140/EN/LANSA016/P ... OFWEEK.htm

Regards

Re: Dates and locale in the browser

Posted: Wed Mar 23, 2016 8:36 pm
by Jiri
Thanks, it works fine. I am wondering we did not noticed the note in doc, or was it updated recently?

Re: Dates and locale in the browser

Posted: Thu Mar 24, 2016 8:24 am
by Stewart Marshall
Good to know it's working as designed.

Sorry to tell you though Jiri, but that document hasn't changed since GA.

Regards

Re: Dates and locale in the browser

Posted: Fri Jun 03, 2016 12:05 am
by ahj_dk
Hi Jiri,

Did you find a solution to the datepicker 'Today' date format issue ?

Re: Dates and locale in the browser

Posted: Fri Jun 03, 2016 1:06 pm
by dannyoorburg
Hi Allan,

it turned out the incorrect format of the 'Today' caption was hard-coded into the LANSA runtime. Not much you can do about that.

The issue will be fixed in the upcoming service pack.

Regards,
Danny