Skip to content

Commit

Permalink
remove leading 0 from non-octal number
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jul 15, 2024
1 parent 91db7c5 commit 1204736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/exprhelpers/exprlib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1392,12 +1392,12 @@ func TestParseUnixTime(t *testing.T) {
{
name: "ParseUnix() test: valid value with milli",
value: "1672239773.3590894",
expected: time.Date(2022, 12, 28, 15, 02, 53, 0, time.UTC),
expected: time.Date(2022, 12, 28, 15, 2, 53, 0, time.UTC),
},
{
name: "ParseUnix() test: valid value without milli",
value: "1672239773",
expected: time.Date(2022, 12, 28, 15, 02, 53, 0, time.UTC),
expected: time.Date(2022, 12, 28, 15, 2, 53, 0, time.UTC),
},
{
name: "ParseUnix() test: invalid input",
Expand Down

0 comments on commit 1204736

Please sign in to comment.