Knowledge base

Why does my integration condition fail with "can't compare offset-naive and offset-aware datetimes"?

Compare the date-time field with a value that has a time zone, such as Last Action Performed At or, since June 2026, now().

Fix

Short answer: The condition compares a date-time that has a time zone with a value that has none. Since June 2026, now() includes a time zone, so it no longer causes this error. Compare against a value in the same format, such as Last Action Performed At from the trigger data.

Why it happens

  • Date-time fields reach the integration in UTC with a time zone attached.
  • Since June 2026, now() in an integration condition returns the current time in GMT with its time zone, so comparing it with a date-time field no longer causes this error.
  • The error means the condition still compares that field with a value that has no time zone. The two formats can't be compared.

How to fix it

  1. Open the action that has the condition and click Change next to When does this step happen?. See Adding conditions to an integration.
  2. Replace the value that has no time zone with Last Action Performed At from the trigger step, or with now(). It holds the trigger time in the matching format.
  3. Save, retest the action, and turn on the integration.

If you need the current time from the form instead:

  1. Add a hidden Date-time field to the process form, with the formula now().
  2. Use that field in the integration condition.

If the error continues, check the text and date functions in the condition. A wrong use of toText can also break it. See Date expressions and Text expressions.

Related answers