At the control i have a “Post Value” action configured to send the date time value to the clipboard on change but as you can see in the next image, the value for the “DtInicio” property is beeing updated with a different value than it was selected in UI.
The clipboard shows GMT value for DateTime properties. As America/Bahia has 3 hours offset from GMT (UTC - 03:00), the time that is stored in database will be 3 hours greater than what it shows on the clock in Bahia, Brazil. Please note that when the DateTime shows in clipboard, it also shows the timezone related to that value, which is GMT (not GMT -03:00).
… are two different ways of representing the same moment in time. One is not three hours later than the other; they are the same moment in time shown in different timezones.
All datetimes on Pega’s clipboard and in the database are stored in GMT;
All datetimes shown on a Pega user interfaces are timezone-converted to the timezone of the current Operator.
This is so that any Operator looking at a date/time can trust that they are seeing the time converted to their local time.