Skip to content

Commit

Permalink
fix: change clickhouse datetime string format
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Kachanovsky committed Jan 15, 2025
1 parent 04e56a8 commit 8a517d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminforth/dataConnectors/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class ClickhouseConnector extends AdminForthBaseConnector implements IAdminForth
|| field._underlineType.startsWith('String')
|| field._underlineType.startsWith('FixedString')) {
// value is iso string now, convert to unix timestamp
const iso = dayjs(value).toISOString();
const iso = dayjs(value).format('YYYY-MM-DDTHH:mm:ss');
return iso;
}
} else if (field.type == AdminForthDataTypes.BOOLEAN) {
Expand Down

0 comments on commit 8a517d1

Please sign in to comment.