You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-30 00:58:30 +02:00
[#2602] added common int types support when scanning types.DateTime
This commit is contained in:
@@ -78,7 +78,7 @@ func (d *DateTime) Scan(value any) error {
|
||||
d.t = v.Time()
|
||||
case time.Time:
|
||||
d.t = v
|
||||
case int:
|
||||
case int, int64, int32, uint, uint64, uint32:
|
||||
d.t = cast.ToTime(v)
|
||||
case string:
|
||||
if v == "" {
|
||||
|
||||
Reference in New Issue
Block a user