Dates and locale in the browser

This forum allows developers to post programming tips and coding techniques that may be useful to other Visual LANSA developers. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Dates and locale in the browser

Post by Stewart Marshall » Mon Jan 18, 2016 1:17 pm

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.
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

User avatar
Jiri
Posts: 45
Joined: Thu Feb 11, 2016 11:41 pm

Re: Dates and locale in the browser

Post by Jiri » Wed Mar 23, 2016 3:08 am

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?

User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Dates and locale in the browser

Post by Stewart Marshall » Wed Mar 23, 2016 2:42 pm

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
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

User avatar
Jiri
Posts: 45
Joined: Thu Feb 11, 2016 11:41 pm

Re: Dates and locale in the browser

Post by Jiri » Wed Mar 23, 2016 8:36 pm

Thanks, it works fine. I am wondering we did not noticed the note in doc, or was it updated recently?

User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Dates and locale in the browser

Post by Stewart Marshall » Thu Mar 24, 2016 8:24 am

Good to know it's working as designed.

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

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

User avatar
ahj_dk
Posts: 20
Joined: Wed Mar 09, 2016 9:10 pm

Re: Dates and locale in the browser

Post by ahj_dk » Fri Jun 03, 2016 12:05 am

Hi Jiri,

Did you find a solution to the datepicker 'Today' date format issue ?
Regards
Allan Jakobsen
Futura Data A/S

dannyoorburg
Posts: 176
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: Dates and locale in the browser

Post by dannyoorburg » Fri Jun 03, 2016 1:06 pm

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

Post Reply