You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
The text was updated successfully, but these errors were encountered:
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'.
The text was updated successfully, but these errors were encountered: