Skip to content

Commit 1ae5a90

Browse files
authored
chore(lwtime): set LW_CLOCK_OFFSET = +0s (#1289)
Signed-off-by: Salim Afiune Maya <[email protected]>
1 parent 49a0fe0 commit 1ae5a90

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lwtime/nattime_internal_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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{

lwtime/reltime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
4444
func nowClockOffset() string {

lwtime/reltime_internal_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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{

0 commit comments

Comments
 (0)