From 34da819953c6eb4505d6ebcb95c7800c5508bd4e Mon Sep 17 00:00:00 2001 From: Jarek Kowalski Date: Sat, 27 Feb 2021 20:57:33 -0800 Subject: [PATCH] faketime: fixed offset (#853) --- internal/faketime/faketime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/faketime/faketime.go b/internal/faketime/faketime.go index 91c4089df..5650189e1 100644 --- a/internal/faketime/faketime.go +++ b/internal/faketime/faketime.go @@ -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.