diff --git a/moderation/importers/moderation.py b/moderation/importers/moderation.py index c5a54fe..090f47c 100644 --- a/moderation/importers/moderation.py +++ b/moderation/importers/moderation.py @@ -1,4 +1,4 @@ -from datetime import timedelta, strptime +from datetime import timedelta, datetime import json from redbot.core import commands from discord import Message, ButtonStyle, Interaction, ui @@ -70,7 +70,7 @@ class ImportModerationView(ui.View): case['metadata'] = {} if duration != 'NULL': - duration_t = strptime(case['duration'], "%H:%M:%S") + duration_t = datetime.strptime(case['duration'], "%H:%M:%S") duration = timedelta( hours=duration_t.hours, minutes=duration_t.minutes,