# Different values for date time property in UI and Clipboard

**URL:** <https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881>\
**Category:** User Experience\
**Tags:** 8-4, user-experience, case-management\
**Created:** [November 27, 2020, 4:40am UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881 "2020-11-27T04:40:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RenatoC3](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@RenatoC3](https://forums.pega.com/u/RenatoC3)\
**Post date:** [November 27, 2020, 4:40am UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881/1 "2020-11-27T04:40:05Z")

</div>

Hello Everyone,

I’m facing an issue regarding the Date time control that is sending incorrect time to the clipboard.

The image below shows the date and time choosed:

 ![UI Selection.png](https://pega1.discourse-cdn.com/pega/original/2X/f/f08e6bcad1e9390d1ff24a2916a3822711ec75bd.png)

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.

 ![Clipboard.png](https://pega1.discourse-cdn.com/pega/original/2X/b/be35e3d1b9fbf90ed18e2a271b565d209587b944.png)

One thing that is curious is that the time on the clipboard its always three hours longer than the time selected in the UI date and time control.

Can anyone help me to solve this issue?

Ps.: The time zone selected for my operator is America/Bahia.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![MarcLasserre\_GCS](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MarcLasserre\_GCS](https://forums.pega.com/u/MarcLasserre_GCS)\
**Post date:** [November 27, 2020, 8:06am UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881/2 "2020-11-27T08:06:06Z")

</div>

Hello,

Can you check if you get the same behaviour on UI Gallery:

 ![DateTime.png](https://pega1.discourse-cdn.com/pega/original/3X/1/f/1f460485b660cc32c3a8411c838da6f0d8db367e.png)

---

<div class="post-metadata">

**Author:** ![RenatoC3](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@RenatoC3](https://forums.pega.com/u/RenatoC3)\
**Post date:** [November 27, 2020, 8:26pm UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881/3 "2020-11-27T20:26:11Z")

</div>

@MarcLasserre_GCS thanks for your reply!

When i look in UI Gallery its presenting the data correctly as you can see below:

 ![UI Gallery.png](https://pega1.discourse-cdn.com/pega/original/2X/f/f2cb518a7a5a511cb4765c441cb4770ca9f00523.png)

but when I check the value on the clipboard it is still incorrect as you can see below:

 ![Clipboard.png](https://pega1.discourse-cdn.com/pega/original/2X/8/89df5d4f6b4c7e837dca432dd75e672b6f4f3745.png)

---

<div class="post-metadata">

**Author:** ![MarcLasserre\_GCS](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@MarcLasserre\_GCS](https://forums.pega.com/u/MarcLasserre_GCS)\
**Post date:** [November 30, 2020, 8:07am UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881/4 "2020-11-30T08:07:15Z")

</div>

Hello,

Is it a time zone issue as described in here: [Date time selection from Calendar icon is updating with wrong values in clipboard in Pega 7.1.7 | Support Center](https://collaborate.pega.com/question/date-time-selection-calendar-icon-updating-wrong-values-clipboard-pega-717)

Maybe the timezone on the server is different to the one on your database?

---

<div class="post-metadata">

**Author:** ![PraveenPuri](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@PraveenPuri](https://forums.pega.com/u/PraveenPuri)\
**Post date:** [December 1, 2020, 12:28pm UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881/5 "2020-12-01T12:28:00Z")

</div>

This is expected behaviour.

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).

Hope this helps

---

<div class="post-metadata">

**Author:** ![BraamSmithCLSA](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/braamsmithclsa/32/24183_2.png) [@BraamSmithCLSA](https://forums.pega.com/u/BraamSmithCLSA)\
**Post date:** [December 1, 2020, 11:28pm UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881/6 "2020-12-01T23:28:06Z")

</div>

Hi @RenatoC3

@PraveenPuri is correct here. To be clear though:

- 27/11/2020 1:43 (America/Bahia time); and
- 20201127T044300.000 GMT

… 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.

---

<div class="post-metadata">

**Author:** ![RenatoC3](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@RenatoC3](https://forums.pega.com/u/RenatoC3)\
**Post date:** [December 3, 2020, 6:17pm UTC](https://forums.pega.com/t/different-values-for-date-time-property-in-ui-and-clipboard/881/7 "2020-12-03T18:17:35Z")

</div>

Thank you for your help @PraveenPuri and @BraamCLSA!!
