datatypes icon indicating copy to clipboard operation
datatypes copied to clipboard

Update ignores SerializerValuerInterface of UpdatedAt

Open generikvault opened this issue 1 year ago • 0 comments

GORM Playground Link

https://github.com/go-gorm/playground/pull/772

Description

On SQLite with a custom SerializerInterface and SerializerValuerInterface datetime type for CreatedAt and UpdatedAt:

Insert works fine but on Update time.Time is used instead of the custom SerializerValuerInterface

generikvault avatar Nov 14 '24 10:11 generikvault