I am having trouble getting my workflow to output the right date/time when posting to the server. I am in PST but the server is EST so my times are off by 3 hours.
In my workflow there is a field indicating "Date Update Date/Time" that uses this formula to correct the date:
DateTimeAdd(datetimenow(),-3,"Hours")
It works when running in designer as showing 4:00 AM instead of the local time of 7:00 AM but when I run in the gallery, it returns 10:00 AM instead of the desired 7:00 AM.
Next I tried to subtract 6 hours but it still returned 10:00 AM.
DateTimeAdd(datetimenow(),-6,"Hours")
Finally, I converted the field to a string field but it still is forcing the date 3 hours ahead --- which truly baffled me.
Any insight to help me resolve this would be greatly appreciated.