Skip to content

Commit b2e6414

Browse files
authored
Merge pull request #67 from devforth/fix-clickhouse-datetime-parsing
fix: change clickhouse datetime string format
2 parents 04e56a8 + 8a517d1 commit b2e6414

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)