We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba78bf0 + 97ecc79 commit 8a8b669Copy full SHA for 8a8b669
1 file changed
adminforth/dataConnectors/mongo.ts
@@ -194,13 +194,8 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
194
if (!value) {
195
return null;
196
}
197
- if (field._underlineType == 'timestamp' || field._underlineType == 'int') {
198
- // value is iso string now, convert to unix timestamp
199
- return dayjs(value).unix();
200
- } else if (field._underlineType == 'varchar') {
201
202
- return dayjs(value).toISOString();
203
- }
+ return dayjs(value).toDate();
+
204
} else if (field.type == AdminForthDataTypes.BOOLEAN) {
205
return value === null ? null : (value ? true : false);
206
} else if (field.type == AdminForthDataTypes.DECIMAL) {
0 commit comments