File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ var NaturalFromTimeTests = []NaturalFromTimeTest{
294294 "2021-01-01T00:00:01Z" ,
295295 time .RFC3339 ,
296296 "today" ,
297- - 1 ,
297+ 1 ,
298298 nil ,
299299 },
300300 NaturalFromTimeTest {
@@ -310,15 +310,15 @@ var NaturalFromTimeTests = []NaturalFromTimeTest{
310310 "2021-01-01T23:59:59Z" ,
311311 time .RFC3339 ,
312312 "this day" ,
313- 86397 ,
313+ 86399 ,
314314 nil ,
315315 },
316316 NaturalFromTimeTest {
317317 "current" ,
318318 "2021-01-01T23:59:59Z" ,
319319 time .RFC3339 ,
320320 "current month" ,
321- 86397 ,
321+ 86399 ,
322322 nil ,
323323 },
324324 NaturalFromTimeTest {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ type relativeDate struct {
3838
3939// The potential difference between the clocks on the client
4040// and the Lacework API server
41- const clockOffset = "-2s "
41+ const clockOffset = "+0s "
4242
4343// Returns 'now' with the default or the provided clock offset
4444func nowClockOffset () string {
Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ var newRelativeTests = []newRelativeTest{
162162 "now" ,
163163 "now" ,
164164 relative {
165- "-2 " ,
166- - 2 ,
165+ "0 " ,
166+ 0 ,
167167 relativeUnit ("s" ),
168168 relativeUnit ("" ),
169169 },
@@ -302,7 +302,7 @@ var RelativeTimeTests = []RelativeTimeTest{
302302 "2006-02-02T15:04:05-07:00" ,
303303 time .RFC3339 ,
304304 "now" ,
305- "2006-02-02T15:04:03 -07:00" ,
305+ "2006-02-02T15:04:05 -07:00" ,
306306 nil ,
307307 },
308308 RelativeTimeTest {
You can’t perform that action at this time.
0 commit comments