Time picker perspective component

For Time picker component in ignition, when binded to some property which has date time object, In the designer it allows to change the hrs and min for both AM and PM. But while doing in browser in PM I’m able to change the hrs and min, but not for AM. It doesn’t allow to go over 11hrs and below the time set via binding (with system.date.now()) whem AM is selected.

And if i change AM to PM and set some time before current time and again change it back to AM it resets to the current time.

time set via binding (with system.date.now()) whem AM is selected.

If the binding is set to update with AM selected, then it is a normal behavior.

If you can share binding snap shots it might help to understand better.

Irfan

Best to use HH:mm format and do away with confusing meridians and the awkward spinners / dropdown combo. There are 24 hours in a day. I’m convinced that the person who invented the 12 hr am/pm format is still watching over people and laughing every time someone has to think if 12am is midnight or midday.

4 Likes

You mean to use a textfield for taking input in format HH:mm?

No, in that component there's a time format that defaults to hh:mm a for some reason. Change it to HH:mm

1 Like

I tried this. The binding preview shows correct output. When i click apply, the value prop on the right side briefly changes to the output from the binding preview and then time gets changed to current time. And any time below 06:00 is also getting changed like this. But time after this works fine.

Is there a binding or anything that updates that periodDetails.startTime prop value?

What is the value of this prop?

its binded with the input param of the view, which has 1 way binding. And I set the param value to 06:00 manually in the designer. This time i was testing only in designer.

Are your gateway and designer in different timezones?

In designer, project properties shows perspective time zone as gateways time zone which is somewhere in US.
But i’m using designer in India.