Fixed date value for properties.

This commit is contained in:
Mike Cao 2024-08-20 00:34:01 -07:00
parent 10239fefcd
commit 5aba9acb81
3 changed files with 4 additions and 4 deletions

View file

@ -94,7 +94,7 @@ async function clickhouseQuery(data: {
data_type: dataType,
string_value: getStringValue(value, dataType),
number_value: dataType === DATA_TYPE.number ? value : null,
date_value: dataType === DATA_TYPE.date ? value?.toISOString() : null,
date_value: dataType === DATA_TYPE.date ? getUTCString(value) : null,
created_at: createdAt,
};
});