Can we define timezone for AEM scheduler?

Avatar

Avatar

ektaa69139387

Avatar

ektaa69139387

ektaa69139387

14-12-2020

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

SureshDhulipudi

MVP

Avatar

SureshDhulipudi

MVP

SureshDhulipudi
MVP

14-12-2020

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.

Answers (1)

Answers (1)

Avatar

Avatar

vanegi

Employee

Avatar

vanegi

Employee

vanegi
Employee

14-12-2020

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