Monday, January 18, 2010

The date format in Microsoft Dynamics AX 4.0 Enterprise Portal site is not changed after you change displayed the date format of SharePoint sites

SYMPTOMS
You change the displayed date format of the SharePoint sites in the Regional Settings Web page. However, the date format in Microsoft Dynamics AX 4.0 Enterprise Portal site is not changed. If you change the profile of the regional setting of the current user, the date format will not be changed either.

WORKAROUND
To change the date format, create and set a local interactive account for the Enterprise Portal (EP) user on the server that is running Internet Information Services (IIS) and then set the desired local regional setting. If you want to have a default regional setting for a user who does not have a local account, or does not have a user profile in IIS, change the system-wide setting of the server that is running IIS.

The underlying class that displays Web forms is the WebFormHtml class. The WebFormHtml class sends dates that are in the layoutDate() method. The layoutDate() method makes a call to the date2strUser(,,,) method to format the date. The date2strUser() method that is defined in "\Classes\Global\" is a wrapper around the date2Str() method.

In Enterprise Portal, date is formatted according to the regional settings that are defined in the server that is running IIS. When a user has a local profile in the server that is running IIS and a regional setting exists for this user, this local regional setting overrides the system-wide regional setting. By default, if the user does not have a user profile in the server that is running IIS, Enterprise Portal will use the system-wide regional settings of Windows Server 2003.

No comments: