Skip to content

Commit

Permalink
refactor: replace deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed May 9, 2024
1 parent 76af28f commit 5c8b0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform_plugin_turnitin/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Utility functions for the Turnitin platform plugin."""

from datetime import datetime
from datetime import datetime, timezone

from opaque_keys.edx.keys import UsageKey

Expand All @@ -18,7 +18,7 @@ def get_current_datetime() -> str:
Returns:
str: The current datetime in ISO 8601 format.
"""
return datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")
return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")


def enabled_in_course(block_id: str) -> bool:
Expand Down

0 comments on commit 5c8b0c8

Please sign in to comment.