Selaa lähdekoodia

model.DateTime

- Scan from seconds
Alexey Kim 1 vuosi sitten
vanhempi
commit
37913de8eb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      model/datetime.go

+ 1 - 1
model/datetime.go

@@ -83,7 +83,7 @@ func (d *DateTime) UnmarshalGQL(v interface{}) error {
 
 func (d *DateTime) Scan(src any) error {
 	if t, ok := src.(int64); ok {
-		*d = DateTime(t)
+		*d = NewDateTimeIn(int(t))
 		return nil
 	}