Skip to content

Commit 50ebcd8

Browse files
authored
refactor context tests to be separate functions (#2540)
1 parent c7d6d43 commit 50ebcd8

File tree

3 files changed

+448
-362
lines changed

3 files changed

+448
-362
lines changed

Diff for: binder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ func (b *ValueBinder) unixTime(sourceParam string, dest *time.Time, valueMustExi
13231323
case time.Second:
13241324
*dest = time.Unix(n, 0)
13251325
case time.Millisecond:
1326-
*dest = time.Unix(n/1e3, (n%1e3)*1e6) // TODO: time.UnixMilli(n) exists since Go1.17 switch to that when min version allows
1326+
*dest = time.UnixMilli(n)
13271327
case time.Nanosecond:
13281328
*dest = time.Unix(0, n)
13291329
}

0 commit comments

Comments
 (0)