go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
89 stars 681 forks source link

db.Save updates UpdatedAt with a zero value. #742

Closed szerr closed 3 months ago

szerr commented 3 months ago

db.Save updates CreatedAt with a zero value. Then throws an error. db.Create sets UpdatedAt to the current time, shouldn't it be null?