faketime: fixed offset (#853)

This commit is contained in:
Jarek Kowalski authored and GitHub committed 2021-02-27 20:57:33 -08:00
1 parent 6bb41794ee
commit 34da819953
1 file changed
+1 -1
+1 -1
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.