Skip to Content
avatar image
Former Member

Date format

Hi to everyone,

I have a strange behaviour with my webdynpro project. I made two applications for my project, one with authentication mode true, the other without it. You must know that the first view of my project contains a date field. When I execute the application with authentication mode true, the date field is in the format MM/DD/YYYY, when I execute the application without authentication mode, the date field is in the format DD/MM/YYYY. Why this? I prefer format DD/MM/YYYY (I'm from Italy).

Thanks a lot,

Antonio

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 25, 2004 at 04:33 PM

    Antonio,

    Every user has associated locale, which is used for formatting locale-sensitive data.

    When you are using authenticated mode, locale of authenticated user is used. When you run unauthenticated application, you are executing it under <i>Guest</i> account, and, in effect, locale of this account is used. It seems that it is default JVM locale.

    Hope this helps,

    VS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 26, 2004 at 06:44 PM

    Antonio the reply you got was straightforward and hope answered your question, but here is some more information for future projects.

    Just so that you know the UME(User management Engine) determines the locale depending on the user and there is a specific fall back sequence.

    1) First if your authenticated then the user specific locale is returned.

    2) if not authenticated then the browser locale is taken(Tools/Internet Options/Languages) If you are familiar with HTTP headers in the request/response it is the 'accept-language'

    3) Next fallback is the default locale specified in the application properties

    4)then Web Dynpro System properties locale

    5) finally default locale of your Virtual Machine..

    Hope this was helpful...

    Wael Aoudi

    Add comment
    10|10000 characters needed characters exceeded