SAP Knowledge Base Article - Public

2536413 - Incorrect Time Zone on Workflow E-Mails (e-mail notifications)

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).
    1. Go to the work center Sales.
    2. Go to the view Leads.
    3. Open any lead.
    4. Maintain the time and date in the extension field of type date/time and save.
    5. 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.

  1. 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.
  2. 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.
    1. Go to the Administrator work center.
    2. Go to the Workflow Rules view.
    3. Open the relevant rule.
    4. Go to Actions.
    5. 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

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