Question
HCLTech
NL
Last activity: 14 Apr 2022 7:02 EDT
UK Daylight Saving Date Time issue
I have a UI date time control where we ask for user to select date time, when user selects any date time betwen 27/03/2022 1:01 and 27/03/2022 1:59, Pega is giving below error
PropertyValueInvalid .pegaToBigDecimal() Invalid number/datetime format (was 27/03/2022 1:55)27/03/2022 1:55 is not a valid date/time value
its working fine after 27/03/2022 2:01, I know UK has daylight saving on 27/03/2022 from 1:00
How we can handle this issue?
***Edited by Moderator Marije to add Capability tags***
@Mohan Rao Alladi Below some documentation to help explain the functionality of timezone and DST:
Time zone and Daylight Savings Time conversions
Displaying time in sync to the Time zone of the users
Can you provide us with details about where users are clicking to select the DateTime property?
How is the DateTime control configured, and the field validation that is occurring in the background?
In particular I'm interested in BigDecimal value displayed corresponding to Pega Platform Date.
Please see the following support article which explains the importance of considering the server timezone as well as client timezone when involving the function DateTime.addCalendar()
Are you using a Calendar to select the field? If so, you need to use a calendar (either custom or default) that is Daylight Savings Time aware:
https://community.pega.com/support/support-articles/day-light-saving-issue
Can you show us the Operator Locale and Timezone used? Does the validation and DateTime property have the timezone conversion hard-coded within it?