Symptom
- Case date/time format inconsistency
- In the Cases Work Center:
- Expectation: "Created On" and "Updated On" date formats should align with DD/MM/YYYY 24-hour format consistently.
- Current state: The format is MM/DD/YYYY 12-hour format.
- Within an opened Case:
- Expectation: "Changed On", "Reported On", "Assigned To Processor On", and "Created On" dates should follow the DD/MM/YYYY 24-hour format consistently.
- Current state: The dates may currently utilize the MM/DD/YYYY 12-hour format.
Environment
- SAP Service Cloud Version 2 1.0
- SAP Sales Cloud 2 1.0
Reproducing the Issue
- Connect to Service Cloud V2.
- Open the Case Work Center.
- Check the "Created On" and "Updated On" date formats.
- Open a case and inspect the following dates:
- "Changed On"
- "Reported On"
- "Assigned To Processor On"
- "Created On"
- Expectation: All dates should consistently follow the DD/MM/YYYY 24-hour format.
- Current state: The dates may currently utilize the MM/DD/YYYY 12-hour format.
Resolution
- To ensure consistency, ensure that the browser locale is correct, the locale is used to determine the dates, time zone, or amount formats.
- Verifying the existing browser language via the Developer tool console
- Go to the Case Work Center
- Right click and click on "Inspect" or hit Ctrl+Shift+I (English 101 keyboard)
- At the end of the console, enter the following commands:
- window.auth4crm.AuthUtil.getLocale() [Hit enter] -> the default browser language should be displayed.
- Intl.DateTimeFormat().format(new Date()) [Hit enter] -> this will show the current date format
- If you want to use English as the language, but want to still have the same DD/MM/YYYY format with 24 hour time format, then you need to set the preferred browser language as "English (United Kingdom)".
- For example, in Google Chrome:
- Go to Settings
- Search for "Preferred Languages"
- Add/Select "English (United Kingdom)" and make it as the default UI language
- This language is used to display the Google Chrome UI)
- This language should also be at the top if there are other languages in the list
- Restart the browser and retest
- For Microsoft Edge:
- Access Settings: Click on the three-dot menu icon (⋯) located in the top right corner of the browser window to open the menu.
- Navigate to Settings: In the menu, scroll down and click on "Settings".
- Select Language Settings: In the Settings menu, scroll down and click on "Languages".
- Add Preferred Language: Click on "Add languages". For example, English UK/GB
- Choose Language: Select your preferred language from the list of available languages. You can search for the language using the search box or scroll through the list.
- Set as Preferred: After selecting the language, click on the "Add" button to add it to your list of preferred languages.
- Adjust Language Settings: Once added, you can click on the language to adjust settings such as the display language order and spell check preferences.
- Save Changes: After making your desired changes, click on the "Save" button to save your language preferences.
- Restart Microsoft Edge: Close and reopen Microsoft Edge for the changes to take effect.
- For example, in Google Chrome:
- Verifying the existing browser language via the Developer tool console
- Please note though, that for add-ons, dates and times are not updated based on your browser settings.
- In the operating system itself, ensure that the preferred language is defined as the display language
See Also
- 3410374 - When logging in with a non-English language, the default date format of DD/MM/YYYY is incorrectly displaying as the English format MM/DD/YYYY
- Language Settings
Keywords
Wrong Date format, DD/MM/YYYY, MM/DD/YYYY, HH:MM:SS, HH:MM, PM, AM, format, discrepancy, local, browser, service cloud , KBA , CEC-CRM-CAS , Case Management for SAP Sales/Service Cloud , Problem
Product
SAP Sales Cloud and SAP Service Cloud Version 2 1.0