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

Today function is setting wrong date in certain locales



For users in certain locales that are different from the server's local, the today function is setting the date as yesterday's date in the user interface, while setting the correct date in the Clipboard.

Error Messages

No error but wrong behavior

Steps to Reproduce

Create a data trasformation that set a property with today function. Set in Argentina/Buenos Aires timezone your end user and create a section that show this property.

Root Cause

The timezones with the error are Western Hemisphere timezones and are the result of how PRPC stores datetime values with a timezone of GMT.


The symptoms point to this as a problem of displaying midnight GMT in a "GMT-" Western Hemisphere time zone.

It appears that the date/time value with a time of midnight is being converted to the corresponding date/time in Argentina, the timezone setting. Midnight on 10 December GMT is 9PM on 9 December in Buenos Aires. Then to display the value in the Date Completed box, which is displaying only a date, the time is not used and the date is shown as 09/12/2014.

Does the same issue occur for other "GMT-" Western hemisphere timezones? Such as Santiago or Bogota?
Do other "GMT+" Eastern hemisphere timezones show the expected date? Such as Beijing or Tokyo?

These two PDN articles may help with explaining the processing which is occurring:

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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