Skip to content

Commit

Permalink
add float support for epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Nov 6, 2024
1 parent b8d7e69 commit 80e0116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brewtils/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, format="epoch", **kwargs):
@staticmethod
def to_epoch(value):
# If already in epoch form just return it
if isinstance(value, int):
if isinstance(value, int) or isinstance(value, float):
return value

return utils.timestamp_ms(value)
Expand Down

0 comments on commit 80e0116

Please sign in to comment.