Skip to content

Commit

Permalink
REF: Update from deprecated datetime.datetime.utcnow method
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Jul 16, 2024
1 parent 1bbb7bb commit c530b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octue/cloud/pub_sub/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def _emit_event(
attributes.update(
{
"uuid": str(uuid.uuid4()),
"datetime": datetime.datetime.utcnow().isoformat(),
"datetime": datetime.datetime.now(tz=datetime.timezone.utc).isoformat(),
"question_uuid": question_uuid,
"parent_question_uuid": parent_question_uuid,
"originator_question_uuid": originator_question_uuid,
Expand Down

0 comments on commit c530b19

Please sign in to comment.