satellite/satellitedb: return latest coupon time as UTC
it doesn't necessarily _have_ to be UTC; the time is correct as returned either way, but this will make it a little less prone to variance. also, there is a test that depends on the time being returned in UTC. Change-Id: Ia71e24ecd9973ba70a1cfb5621a3030a5c82d004
This commit is contained in:
parent
e0b9b5b317
commit
4d2881b711
@ -211,7 +211,7 @@ func (coupons *coupons) GetLatest(ctx context.Context, couponID uuid.UUID) (_ ti
|
||||
return created, stripecoinpayments.ErrNoCouponUsages.Wrap(err)
|
||||
}
|
||||
|
||||
return created, err
|
||||
return created.UTC(), err
|
||||
}
|
||||
|
||||
// couponsFromDbxSlice is used for creating []payments.Coupon entities from autogenerated []dbx.Coupon struct.
|
||||
|
Loading…
Reference in New Issue
Block a user