diff --git a/parea/helpers.py b/parea/helpers.py index 3e3f9fc0..4329834d 100644 --- a/parea/helpers.py +++ b/parea/helpers.py @@ -1,5 +1,5 @@ +import time import uuid -from datetime import datetime def gen_trace_id() -> str: @@ -8,5 +8,4 @@ def gen_trace_id() -> str: def to_date_and_time_string(timestamp: float) -> str: - """Convert a timestamp to a date and time string""" - return datetime.fromtimestamp(timestamp).strftime("%Y-%m-%d %H:%M:%S %Z").strip() + return time.strftime("%Y-%m-%d %H:%M:%S %Z", time.localtime(timestamp)) diff --git a/pyproject.toml b/pyproject.toml index 56e7f086..b5006a4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "parea-ai" packages = [{ include = "parea" }] -version = "0.2.6" +version = "0.2.7a0" description = "Parea python sdk" readme = "README.md" authors = ["joel-parea-ai "]