Skip to main content
Level 2
Dec 14, 2020 10:28 AM UTC
Solved

Can we define timezone for AEM scheduler?

Hi,

 

We have one requirement that we want to run aem scheduler in EST timezone but our AEM server is running in UTC timezone. So is there a way to schedule scheduler in EST timezone?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SureshDhulipudi
SureshDhulipudiAccepted solution
Community Advisor
Dec 14, 2020 11:33 AM UTC

we can not able to give client side time zone for scheduler. In cron expression, there is no option.

You can convert your EST time to Server Time (UTC) and get the cron expression.

UTC time is 5 hours ahead of Easter time, you can easily convert / calculate the time to schedule the job in set.

3 replies

SureshDhulipudi
Community Advisor
SureshDhulipudiCommunity AdvisorAccepted solution
Community Advisor
Dec 14, 2020 11:33 AM UTC

we can not able to give client side time zone for scheduler. In cron expression, there is no option.

You can convert your EST time to Server Time (UTC) and get the cron expression.

UTC time is 5 hours ahead of Easter time, you can easily convert / calculate the time to schedule the job in set.

Translate
vanegi
Adobe Employee
Adobe Employee
Dec 14, 2020 2:10 PM UTC

Hi @ektaa69139387,

You can set -Duser.timezone and force the server to use the required timezone in startup file: 

Use :-    -Duser.timezone=US/Central or -Duser.timezone=America/Los_Angeles etc.

I hope this would help you.

 

Thanks!!

Translate
BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Dec 15, 2020 4:37 PM UTC
@ektaa69139387 to test, you can simply use this block of code, System.out.println(TimeZone.getDefault());
Translate