Why does @default: now work on date fields

It is possible to write

'Date': number 'date' @default: from now

But it it should always be converted from ‘date time’ to be usefull.

'Date': number 'date' @default: from 'date time' now

Is there a way to guard against these kind of mistakes?

1 Like

We have temporarily disabled numerical type checking in ui expressions as our existing analysis was unnecessarily restrictive, which proved to be problematic for multiple platform users.

We plan to fix numerical type checking (the guards) in the near future.

1 Like