I had columns that have a type 'time' in Mariadb. For those columns, admin-bro shows NaN, which seems it tries to convert to the Date type but fail. I am using "@admin-bro/typeorm": "^1.4.0",
I checked it at the "adminjs-typeorm/src/Property.js" and it clearly shows that 'time' column is converted to Date.
Thus, I added if(this.column.type === 'time') type = 'string'; at the adminjs-typeorm/src/Property.js and it shows the time correctly.
As a result, I think the type 'time' should not be converted to 'Date'.
I had columns that have a type 'time' in Mariadb. For those columns, admin-bro shows NaN, which seems it tries to convert to the Date type but fail. I am using "@admin-bro/typeorm": "^1.4.0",
This is my entity.
I checked it at the "adminjs-typeorm/src/Property.js" and it clearly shows that 'time' column is converted to Date. Thus, I added
if(this.column.type === 'time') type = 'string';
at the adminjs-typeorm/src/Property.js and it shows the time correctly.As a result, I think the type 'time' should not be converted to 'Date'.