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

Can we define timezone for AEM scheduler?

ektaa69139387
Level 2
Level 2

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?

1 Accepted Solution
SureshDhulipudi
Correct answer by
Community Advisor
Community Advisor

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.

View solution in original post

3 Replies
SureshDhulipudi
Correct answer by
Community Advisor
Community Advisor

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.

View solution in original post

vanegi
Employee
Employee

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!!

BrianKasingli
Community Advisor
Community Advisor
@ektaa69139387 to test, you can simply use this block of code, System.out.println(TimeZone.getDefault());