Posted: 7 Apr 2015 4:48 EDT Last activity: 4 Oct 2018 11:08 EDT
Display of time does not render as per Operator Timezone
I am facing issues with datetime value. The DateOfBirth is saved in datetime format in DB & fetched on property of type DateTime. The value in DB has the time part as 00. While fetching the data the value is converted to GMT & correctly reduces it by an hour(timezone difference). But for a few records the time part is 00 and not decreased by 1 hour. Does anyone know about this issue? Also, while displaying it should automatically add 1 hour owing to my Europe/Dublin timezone in operator ID but it is not doing this & showing a day less as the DoB! Any help/input will be highly appreciated!!
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Share this page
Moderation Team has archived post,
This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.
Posted: 6 years ago
Posted: 7 Apr 2015 12:45 EDT
Henry Cortinas (corte)
Global Tech Enablement, Principal Instructor - LSA
Thanks Henry for your reply. Even if the property is of type 'Date' - Pega fetches it in DateTime format in GMT zone(decreases by one hour) and then clips off the time part...As a result the value is a day less than the correct Date.
Posted: 6 years ago
Posted: 22 Apr 2015 11:57 EDT
Sean Hedenskog (hedes)
Global Tech Enablement, Principal Instructor
Sorry this did not resolve your issue. In order to resolve the issue that you are experiencing a thorough review of all of the factors contributing to the issue is required. Please submit a Service Request (SR) so that one of our Customer Support technicians can work with you on this. You can do so by contacting Pegasystems Global Technical Support through My Support Portal.
We had a similar issue for EST where the Date was stored correctly, but the time as 00:00:00. When this was displayed on UI, it always showed one day prior. That was obvious because of the fact that anything minus "00:00:00" time was always going to be previous date. We implemented a workaround by adding 6 hours to the GMT date. This is to ensure that when 4 hours (during EDT) or 5 hours (during EST) were subtracted internally to render the value, the date still remained unaffected. If you are fetching dates from an external service call, do this within the activity itself. If this is from a ListView, I would recommend applying a DisplayFormat that takes care of this addition of hours appropriately.
Well we did find the solution to it...THe issue was difference between the Timezone in operator Id & Application Server...we had Dublin as timezone for Operator & BST was the timezone of App Server - but what caused confusion was some dates were being rendered correctly while some with one hour less...the issue was because Ireland uses Irish Standard Time(UTC+01:00) in summer & GMT (UTC+00:00) in winter... so the dates falling in different seasons were being rendered accordingly!! I think it is an important learning to understand the TimeZone working of the region the Application is supposed to serve...