Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to override timezone in 'event.timestamp' for workflow emails?

BalvinderKalra
Level 1
Level 1

In our project we are using Adobe OOTB workflow steps in our custom workflows, the workflow email are utilizing the template located at /etc/workflow/notification/email/default/en.txt . This txt file has a variable as Time: ${event.TimeStamp} with the value coming in emails as as Time: Mon Sep 28 16:55:50 UTC 2020 (sample value)
Now our requirement is to override/change this variable, So that it picks up local timezone of aem users, So can you guys please help me a way of modifying this UTC timezone to local timezone of users?

Could you please tell me:

1) Is there a way of modifying this UTC timezone to local timezone of users?

 

@Nikhil-Kumar 
@ChitraMadan 
@Darren_Bowers 
@sunjot16 
@workflowuser 

Workflow
1 Accepted Solution
vanegi
Correct answer by
Employee
Employee

I have tested the use case in my local AEM machine and started my cq jar with an extra argument Duser.timezone=America/New_York and could see that AEM server is on EST timezone by verifying in system properties file [0].

 

[0]:- http://<host:port>/system/console/status-System%20Properties

 

 

Upon checking the timezone in workflow schedule screen, I could see it is taking user time zone and not the server one. The following message is shown in the screen "Your timezone (UTC+05:30) will be used instead of the server setting (UTC-0400)". I then re-verified the same with our internal team and it is an expected behavior, AEM takes user/author based timezone not the server one in these authoring activities. Below is the ticket reference of the discussion with our product team:-

 

[1]:- https://jira.corp.adobe.com/browse/CQ-27972

 

Thanks!!

View solution in original post

1 Reply
vanegi
Correct answer by
Employee
Employee

I have tested the use case in my local AEM machine and started my cq jar with an extra argument Duser.timezone=America/New_York and could see that AEM server is on EST timezone by verifying in system properties file [0].

 

[0]:- http://<host:port>/system/console/status-System%20Properties

 

 

Upon checking the timezone in workflow schedule screen, I could see it is taking user time zone and not the server one. The following message is shown in the screen "Your timezone (UTC+05:30) will be used instead of the server setting (UTC-0400)". I then re-verified the same with our internal team and it is an expected behavior, AEM takes user/author based timezone not the server one in these authoring activities. Below is the ticket reference of the discussion with our product team:-

 

[1]:- https://jira.corp.adobe.com/browse/CQ-27972

 

Thanks!!

View solution in original post