diff --git a/ChangeLog.md b/ChangeLog.md index 3dd2cb1..88f59c7 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [v0.3.11] - 2024-11-01 +### Fixed +- Deprecation warning for `datetime.utcnow()` + ## [v0.3.10] - 2024-10-16 ### Security - Bump certifi minimum version to 2024.07.04 diff --git a/learnosity_sdk/_version.py b/learnosity_sdk/_version.py index d160d1c..1f8f12d 100644 --- a/learnosity_sdk/_version.py +++ b/learnosity_sdk/_version.py @@ -1 +1 @@ -__version__ = 'v0.3.10' +__version__ = 'v0.3.11' diff --git a/learnosity_sdk/request/init.py b/learnosity_sdk/request/init.py index 2bdc38f..90474e2 100644 --- a/learnosity_sdk/request/init.py +++ b/learnosity_sdk/request/init.py @@ -12,7 +12,7 @@ def format_utc_time() -> str: "Get the current UTC time, formatted for a security timestamp" - now = datetime.datetime.utcnow() + now = datetime.datetime.now(datetime.timezone.utc) return now.strftime("%Y%m%d-%H%M")