Getting a date is adding 5 hours to it

greg54
Tera Expert

This is driving me crazy. When I get a date value in a business rule, the system is adding 5 hours to it. My time zone is set to US/Eastern, and the date/time on the table I am getting it from is correct, but when my business rule gets it, it is adding the hours to it and I have no idea why.

 

I will mention that this is an on-prem installation, but the server time on mysql db server is correct and I don't think this has anything to do with the issue.

 

Any help is greatly appreciated!

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Using "getDisplayValue()" will retrieve the date/time in the person's timezone and display format.


-Anurag

Thank you! It never occurred to me that I had to use getDisplayValue() on a date field. Makes sense now. You just saved me a little hair on my head. Thanks again!