From b9ee657a3dc242560052e6bbc99de91c9979ac70 Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Fri, 1 Nov 2024 09:58:23 +0000 Subject: [PATCH 1/2] [FEATURE] Resolve deprecation warning for datetime.datetime.utcnow --- learnosity_sdk/request/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") From 96b7f21bbc2191e9acdfa61e0e221fe8446bbb4b Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Fri, 1 Nov 2024 10:19:09 +0000 Subject: [PATCH 2/2] [DOCS] Bump python version and update Changelog --- ChangeLog.md | 4 ++++ learnosity_sdk/_version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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'