Skip to content

Commit 5230bac

Browse files
committed
fix crash
1 parent 58963a6 commit 5230bac

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/iris-grid/src/sidebar/conditional-formatting/ConditionalFormattingUtils.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,16 @@ export function isDateConditionValid(
745745
return false;
746746
}
747747

748+
// The backend timestamp parsing does not support timezones that end with ST or DT (e.g. EST, EDT)
749+
// Passing these to the backend will cause the table to fail.
750+
if (
751+
tzCode.toUpperCase().endsWith('ST') ||
752+
tzCode.toUpperCase().endsWith('DT')
753+
) {
754+
log.debug('Timezone ending with ST or DT not supported', tzCode);
755+
return false;
756+
}
757+
748758
return true;
749759
}
750760
}

0 commit comments

Comments
 (0)