Skip to content

Commit 3508bbb

Browse files
committed
convert to milliseconds in makeRange too
1 parent 135f037 commit 3508bbb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎generators/esgen/bridgeutil.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ func makeRange(lhs *gentypes.FieldType, op lex.TokenType, rhs expr.Node) (any, e
4949
// rhsval can be converted to a float!
5050
rhsval = rhsf
5151
}
52+
// ISO date string → epoch millis float.
53+
if t, err := dateparse.ParseAny(rhsstr); err == nil {
54+
rhsval = float64(t.UnixMilli())
55+
}
5256
}
5357
}
5458

0 commit comments

Comments
 (0)