Description
type Model struct {
CreateTime FormatTime `gorm:"column:create_time;type:datetime DEFAULT CURRENT_TIMESTAMP;comment:xxx" json:"create_time"`
UpdateTime FormatTime `gorm:"column:update_time;type:datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;comment:xxx" json:"update_time"`
DeleteTime *gorm.DeletedAt `gorm:"column:delete_time;comment:xxx" json:"delete_time,omitempty"`
}
system: Windows 10
mysql: 5.7
go version: 1.17
gorm version: 1.22.5
orm driver 1.2.3
FormatTime is customized
but, when gorm version<=1.22.3 and driver version=1.2.0 , it worked
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: li-jin-gou
Description
type Model struct { CreateTime FormatTime `gorm:"column:create_time;type:datetime DEFAULT CURRENT_TIMESTAMP;comment:xxx" json:"create_time"` UpdateTime FormatTime `gorm:"column:update_time;type:datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;comment:xxx" json:"update_time"` DeleteTime *gorm.DeletedAt `gorm:"column:delete_time;comment:xxx" json:"delete_time,omitempty"` }system: Windows 10 mysql: 5.7 go version: 1.17 gorm version: 1.22.5 orm driver 1.2.3
FormatTime is customized
but, when gorm version<=1.22.3 and driver version=1.2.0 , it worked
hello, you can provide demo in https://github.com/go-gorm/playground ? thanks
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨