Skip to content

Commit 8a517d1

Browse files
author
Petr Kachanovsky
committed
fix: change clickhouse datetime string format
1 parent 04e56a8 commit 8a517d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/dataConnectors/clickhouse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class ClickhouseConnector extends AdminForthBaseConnector implements IAdminForth
141141
|| field._underlineType.startsWith('String')
142142
|| field._underlineType.startsWith('FixedString')) {
143143
// value is iso string now, convert to unix timestamp
144-
const iso = dayjs(value).toISOString();
144+
const iso = dayjs(value).format('YYYY-MM-DDTHH:mm:ss');
145145
return iso;
146146
}
147147
} else if (field.type == AdminForthDataTypes.BOOLEAN) {

0 commit comments

Comments
 (0)