Support Article
Scheduled Report Time Zone
SA-60078
Summary
A scheduled report displays date and time in GMT instead of the user's time zone. The time zones display correctly when the scheduled report is sent manually through Designer Studio.
Error Messages
Not Applicable
Steps to Reproduce
- Schedule a report.
- Receive a report. Times display in GMT.
Root Cause
A defect in Pegasystems’ code or rules.
When a report is exported, the timezone specified by the requestor is considered. During a scheduled export, the server's default timezone is used since the requestor is not an operator. When a scheduled task is run manually through the landing page, the requestor represents the operator who requested the run, and can export the report from the User portal.
Resolution
Perform the following local-change such that all the scheduled tasks use a specified time zone
- Customize the EstablishContext activity to set a timezone for the Batch Requestor page.
- Save As the activity and include the below Java step in it.
PRRequestor r = tools.getRequestor();
ClipboardPage rPage = r.getRequestorPage();
rPage.putString(“pxReqLocale”,”en_AU”);
rPage.putString("pyUseTimeZone"," Australia/Sydney "); (specify the desired timezone).
Published March 30, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.