Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Displaying From and To Time one hour before actually time



When the user creates a Generated Report tile, it displays from/to time one hour before actually selected time.

Example: Instead showing 1:00 pm GMT+1(London) Time it is showing 12:00 pm GMT 

Error Messages

Not Applicable

Steps to Reproduce

  1. Click on Admin Activity Report link.
  2. Select start and End date.
  3. Use FormatDateTime API to convert the time.
  4. Click submit, will get the report .
  5. From and to time is 1 hour before actual time.

Root Cause

An issue in the custom application code or rules. Issue with usage of FormatDateTime.


Add below logic to resolve the issue which will consider Operator Time.

@(Pega-RULES:DateTime).FormatDateTime(.StartDate, "yyyy/MM/dd HH:mm a", 
OperatorID.pyDefaultTimeZone, null) .


Suggest Edit

Published June 17, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us