Getting a date is adding 5 hours to it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2014 07:56 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2014 08:00 AM
Using "getDisplayValue()" will retrieve the date/time in the person's timezone and display format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2014 12:23 PM
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!