Change the value dynamically

I tried to change the value of a time field in ajax event like below , but the time’s value was always incorrect:

{time_field} = "10:30";

The result value in the time field : 11:00

Note : the display format of my time field was hh:mm

Please SC I need a soultion to this problem.

hello alex:

i think you should try something like this

{time_field} = strtotime("11:30 AM")

remember your data type… if set something as time/datetime, try to assign time/datetime values instead of string.

Regards.