Discussion

GMT Vs Server DateTime Vs Local DateTime

Hello,

When  I query @(Pega-RULES:DateTime).CurrentDateTime() im getting the Datetime in GMT as expected, but I'd like to  get the server time on which PRPC is running, and I also would like to get the local time of the user who is accessing the PRPC server from a remote location. Are there any OOTB rules that we can make use of?!

Thanks,
Pradeep

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

July 23, 2014 - 6:07pm

You can set to a date property like this.

@FormatDateTime(@CurrentDateTime(), "yyyyMMdd'T'HHmmss.SSS", "EST5EDT", "en-US") + " GMT"

 

Thanks,

Janaka Perera

July 24, 2014 - 9:37am

I found a solution, I can make use of date format function in combination with the timezone on the operator ID.

September 30, 2016 - 11:00am

@CurrentDateTime() will always return Server Datetime.