Symptom
You have created a workflow rule for an e-mail notification with a placeholder for the time and date of a visit. In the e-mail, the time is displayed with the wrong time zone.
Environment
SAP Cloud for Customers
Reproducing the Issue
- Prerequisites:
- You have created an extension field on the business object of type date/time.
- You have created a workflow rule to sent an e-mail to defined recipient on every save of the extension field.
- You have changed the user settings of the e-mail recipient to the correct time zone.
- Your system tenant is set to the correct time zone.
- Steps to reproduce (in this scenario we will consider Leads, but this is valid for other business objects as well).
- Go to the work center Sales.
- Go to the view Leads.
- Open any lead.
- Maintain the time and date in the extension field of type date/time and save.
- Wait for the e-mail to be triggered by the workflow rule you have configured and open it.
Result: In the e-mail body, the wrong time zone is displayed.
Cause
- The system evaluates the recipient of the e-mail by their business partner role.
- If the recipient has a business partner role in the system, the time zone is populated with the time zone maintained in the business partner's personal settings.
- If the recipient does not have a business partner role in the system, the time zone defaults to UTC.
Resolution
There are two options for any e-mail workflow rule with a placeholder for time.
- If there are personal user settings for date/time format in the system, only maintain recipients that have a business partner role in the system.
- If there are no personal user settings for date/time format in the system, you can define the date/time format and/or time zone during workflow creation.
- Go to the Administrator work center.
- Go to the Workflow Rules view.
- Open the relevant rule.
- Go to Actions.
- Select All Languages in the subject line.
Result:
- You can maintain the date/time and/or time zone for each language template.
- The personal date/time user settings always take precedence over the time format defined in the workflow rule.
See Also
- https://blogs.sap.com/2017/03/20/date-time-format-determination-in-e-mail-in-workflow-c4c/
- KBA 2440710 - SMS Notifications Through Workflow Rules Have UTC Time Stamp
Keywords
Workflow, timezone, time zone, UTC, Notification, C4C, Appointment , KBA , LOD-CRM-WKF , Workflow , How To
Product
SAP Cloud for Customer core applications all versions ; SAP Hybris Cloud for Customer add-ins 1708