faketime: fixed offset (#853)

This commit is contained in:
Jarek Kowalski
2021-02-27 20:57:33 -08:00
committed by GitHub
parent 6bb41794ee
commit 34da819953

View File

@@ -64,7 +64,7 @@ type ClockTimeWithOffset struct {
// NewClockTimeWithOffset creates a ClockTimeWithOffset with the given start time.
func NewClockTimeWithOffset(offset time.Duration) *ClockTimeWithOffset {
return &ClockTimeWithOffset{}
return &ClockTimeWithOffset{offset: offset}
}
// NowFunc returns a time provider function for t.