Erratic behavior with conditional and dates in dashboard indicator

Hi there,
I have the following conditional rule in a dashboard indicator:
[edit]: {{value-0}} is the next service date showing in the preview, formatted as follow:

{{formatDate value-0 ‘DD/MM/YYYY’}}

It’s working fine in the preview, and when I test it in the experience I get the expected result:

Now I jump onto another computer and the condition is triggered even though the condition is not met:

Any idea what could be wrong?

The {{formatDate}} helper, when used in a dashboard, will use the current browser locale when formatting. The format string follows Moment.js format syntax, and the default is L LTS.

For example, in your first browser, which appears to be set to English, this will return 12/19/2022 4:00:00 PM

In your second browser, which appears to be set in French, this would return 19/12/2022 16:00:00

I believe if you format both dates in the expression to DD/MM/YYYY, it will evaluate consistently across multiple locales. If that doesn’t fix the issue, please DM me the workflow file and we’ll troubleshoot further.

Thanks @Sebastian_Turner, I have change the formatting to ‘x’ in the condition, it seems to have fixed it.