Expected behavior
A field configured as date should be formatted in the same way on all view (list, detailed, custom panel)
Actual behavior
Currently, the field is well formatted in list view
but not in detailed view
even if the field is configured as date.
And if I choose a custom format, it will be applied in list view, but not in detailed view.
The field is well configured as date in DB (sequelize/postgres)
birthDate: {
type: Sequelize.DATE,
allowNull: true,
}
and in Sequelize model
@IsDate
@Column(DataType.DATEONLY)
get birthDate(): Date | undefined {
return this.getDataValue("birthDate") ? new Date(this.getDataValue("birthDate")) : undefined;
}
Context
- Express Version: “4.17.1” (via nestJS “7.0.9”)
- Sequelize Version: “5.21.7”
- Database Dialect: Postgres