@@ -165,7 +165,7 @@ async def on_message_edit(
165165 title = "Message edit" ,
166166 description = f"Message ID: { before .id } " ,
167167 )
168- embed .timestamp = datetime .utcnow ()
168+ embed .timestamp = datetime .now ()
169169
170170 # This is here to save space if this listener is triggered by something other than
171171 # a content modification, i.e. a message being pinned
@@ -318,7 +318,7 @@ async def handle_dm(message: discord.Message) -> None:
318318
319319 embed = discord .Embed (color = discord .Color .blue (), description = message .content )
320320 embed .set_footer (text = f"Message ID: { message .id } " )
321- embed .timestamp = datetime .utcnow ()
321+ embed .timestamp = datetime .now ()
322322 if message .author .avatar :
323323 embed .set_author (name = message .author , icon_url = message .author .avatar .url )
324324 else :
@@ -495,7 +495,7 @@ async def create_thread(
495495 # has to be done like this because of member handling
496496 embed .description = description
497497 embed .set_author (name = user , icon_url = url )
498- embed .timestamp = datetime .utcnow ()
498+ embed .timestamp = datetime .now ()
499499 embed .set_footer (text = f"User ID: { user .id } " )
500500
501501 # Handling for roles to ping, not performed if the func was invoked by the contact command
@@ -523,7 +523,7 @@ async def create_thread(
523523 embed = discord .Embed (color = discord .Color .blue (), description = message .content )
524524 embed .set_author (name = user , icon_url = url )
525525 embed .set_footer (text = f"Message ID: { message .id } " )
526- embed .timestamp = datetime .utcnow ()
526+ embed .timestamp = datetime .now ()
527527
528528 attachments = None
529529 if message .attachments :
@@ -541,7 +541,7 @@ async def create_thread(
541541 )
542542 embed .set_author (name = "Thread Created" )
543543 embed .set_footer (text = "Your message has been sent." )
544- embed .timestamp = datetime .utcnow ()
544+ embed .timestamp = datetime .now ()
545545
546546 await message .author .send (embed = embed )
547547
@@ -634,7 +634,7 @@ async def reply_to_thread(
634634 # No need to reconfirm
635635 user_attachments = await build_attachments (thread = thread , message = message )
636636
637- embed .timestamp = datetime .utcnow ()
637+ embed .timestamp = datetime .now ()
638638 embed .set_footer (text = "Response" )
639639
640640 if automatic :
@@ -701,7 +701,7 @@ async def close_thread(
701701 embed .set_footer (
702702 text = "Closing will be cancelled if a message is sent, or if the command is run again."
703703 )
704- embed .timestamp = datetime .utcnow ()
704+ embed .timestamp = datetime .now ()
705705
706706 await thread .send (embed = embed )
707707
@@ -766,7 +766,7 @@ async def close_thread(
766766 description = "Please wait 24 hours before creating a new one." ,
767767 )
768768 embed .set_author (name = "Thread Closed" )
769- embed .timestamp = datetime .utcnow ()
769+ embed .timestamp = datetime .now ()
770770
771771 await user .send (embed = embed )
772772
@@ -813,7 +813,7 @@ async def log_closure(
813813 icon_url = closed_by .avatar .url ,
814814 text = f"Thread closed by { closed_by .name } " ,
815815 )
816- embed .timestamp = datetime .utcnow ()
816+ embed .timestamp = datetime .now ()
817817
818818 await log_channel .send (embed = embed )
819819
@@ -1347,7 +1347,7 @@ async def modmail_commands(self: Self, ctx: commands.Context) -> None:
13471347 description = f"*You can use these by typing `{ prefix } <command>` in a modmail thread*" ,
13481348 title = "Modmail commands" ,
13491349 )
1350- embed .timestamp = datetime .utcnow ()
1350+ embed .timestamp = datetime .now ()
13511351
13521352 # First three are reply commands
13531353 for command in list_of_modmail_commands [:3 ]:
0 commit comments