Skip to content

Commit 454161f

Browse files
committed
fix: update datetime value handling in setFieldValue method to retain original value
1 parent 46a9626 commit 454161f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/dataConnectors/baseConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
265265
if (!dayjs(value).isValid()) {
266266
throw new Error(`Value is not a valid datetime. Field ${field.name} with type is ${field.type}, but got value: ${value} with type ${typeof value}`);
267267
}
268-
return this.setFieldValue(field, dayjs(value).toISOString());
268+
return this.setFieldValue(field, value);
269269
}
270270

271271
// Time

0 commit comments

Comments
 (0)