We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 920fd87 commit 7c828e3Copy full SHA for 7c828e3
test.go
@@ -8,7 +8,9 @@ func SetTestNow(carbon Carbon) Carbon {
8
// SetTestNow sets a test Carbon instance (real or mock) to be returned when a "now" instance is created.
9
func (c Carbon) SetTestNow(carbon Carbon) Carbon {
10
c.testNow = carbon.TimestampNano()
11
- c.loc = carbon.loc
+ if carbon.loc != nil {
12
+ c.loc = carbon.loc
13
+ }
14
return c
15
}
16
0 commit comments