How can I unify the time in a workflow email with the UI time?
Question
Currently, the workflow email mentions time which is one hour behind the UI time. The datetime is inserted into the workflow email template with the following snippet:
$workflowHistory.activeStep.approvalDate; format = "yyyy-MM-dd HH:mm:ss"$
Answer
The date in the workflow email uses server time (UTC), whereas the date in the UI is according to the browser's timezone. To unify it, use $workflowHistory.activeStep.approvalDatePartitionDefaultTZ$
and set Default Timezone in Configuration according to the user's browser timezone (e.g., Europe/Vienna). This way, daylight saving times are taken into account.
, multiple selections available,
Related content
Date, Time and Number Formatting
Date, Time and Number Formatting
More like this
Date, Time and Number Formatting
Date, Time and Number Formatting
More like this
Date & Time
Date & Time
Read with this
How to Get Date Time for Specific Timezone and Date in Specific Format
How to Get Date Time for Specific Timezone and Date in Specific Format
More like this
Message Templates
Message Templates
More like this
Message Templates
Message Templates
More like this
Found an issue in documentation? Write to us.