🔀 Merge branch 'master' of github.com:n8n-io/n8n

This commit is contained in:
Jan Oberhauser 2021-07-18 14:22:10 +02:00
commit 4d77a5a178

View file

@ -347,9 +347,10 @@ export function mapFilters(filters: IDataObject[], timezone: string) {
key = 'text';
} else if (key === 'phone_number') {
key = 'phone';
} else if (key === 'date') {
} else if (key === 'date' && !['is_empty', 'is_not_empty'].includes(value.condition as string)) {
valuePropertyName = (valuePropertyName !== undefined && !Object.keys(valuePropertyName).length) ? {} : moment.tz(value.date, timezone).utc().format();
}
return Object.assign(obj, {
['property']: getNameAndType(value.key).name,
[key]: { [`${value.condition}`]: valuePropertyName },