How can I prevent the final times unusually changing when the supplied times are between 00:00 and 09:00?

In the UI, I supply a start time and end time before 9am e.g. start - 08:32, end - 08:57. When these get inserted into the DB, the 10 minute digit gets changed to 0 e.g. start - 08:02, end 08:07. I notice that this happens only when the start/end times are before 9 o’clock. I’m curious as to why it behaves in this way. I don’t see any indication when tracing.

Below is the code that sets the times.

The full Source of step 5 is: @(Pega-RULES:DateTime).pxGetSpecifiedTimeOnDate(Param.DateValue, Param.Hour, Param.Minute, Param.Second, Param.TimeZone). After these steps the time properties are getting set to Param.DateTimeValue.

Unfortunately I cannot give any more detail or screenshots.

Suggestions on why this is happening and how to fix this so that the times are reflected appropriately would be greatly appreciated!

Faisal

@FaisalM7 Can you share the exact format for Param.TimeValue that is been passed?

I assume the timezone is GB.

Regards

Bhavya

@Bhavya

In the tracer I can see the format of TimeValue that was passed as ‘8:32’ or ‘8:57’.

The time zone is Europe/London.

Issue fixed - changed the functions of Param.Hour and Param.Minute to @whatComesBeforeFirst/whatComesAfterFirst to set and retrieve the times in a different way (steps 4 and 5). This seems to show the times correctly at all times.