Date&Time Widget does not save selection

Hi Knimers,

we have noticed a strange behavior of the ‘Date&Time Widget’ when parameterized with a default value via flow variables. The node is placed within a component.
image
image

When user changes the date from the component UI, the selected date is not saved and the default value is outputted. If you go within the component and execute the widget individually, the selection is saved.

Is this a bug or am I having false expectations here?

Thanks & regards,
Denis

What’s the format of your input value?

If you’re going to supply a flow variable to the Date&Time Widget node it needs to be in a Date&Time format with a timezone.

If I set the default value in the Date&Time Widget node:

Then set the node to output the default value as a flow variable:

You can see the format required:
image

Not sure if you understood my problem correctly.

The problem is not that I cannot set the default value of the widget, that works fine.
The problem is that if the default value is 2023-09-25, and the user executes the component and changes that widget to 2023-09-01, then clicks ‘apply and close’, the flow variable outputted is not what the user set it, but the default value 2023-09-25.

Its actually solved in this post:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.