mirror of
https://github.com/kopia/kopia.git
synced 2026-06-26 06:45:47 -04:00
Set storage time relative to local time in test Sets the storage time based on the base time (bmTime) for clarity, using `Add(maxClockSkew + time.Nanosecond)`. This avoids using `time.Date` with `int(maxClockSkew)` as the minute value, which may be confusing. Add: maybeCheckClockSkewBounds helper. This simplifies both the flow inside the helper itself and the caller. Use `strconv.ParseBool` to simplify `maybeCheckClockSkewBounds` Add test for maybeCheckClockSkewBounds Update wrapped error message to provide context about the operation.