From 80e0116fb504565fa8db3a2811e1cf9468b53a2b Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:27:35 +0000 Subject: [PATCH] add float support for epoch --- brewtils/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewtils/schemas.py b/brewtils/schemas.py index 0b1116c0..52999a4e 100644 --- a/brewtils/schemas.py +++ b/brewtils/schemas.py @@ -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)