diff --git a/overhave/utils/time.py b/overhave/utils/time.py index c5faf11f..56b1f674 100644 --- a/overhave/utils/time.py +++ b/overhave/utils/time.py @@ -5,4 +5,4 @@ def get_current_time() -> datetime.datetime: - return datetime.datetime.utcnow().replace(tzinfo=pytz.UTC) + return datetime.datetime.now(pytz.UTC) diff --git a/pyproject.toml b/pyproject.toml index cfb4facd..8b5c98b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "overhave" -version = "5.2" +version = "5.2.1" description = "Overhave - web-framework for BDD" readme = "README.rst" authors = [