Skip to content

Commit

Permalink
fix deprecated datetime usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WitherOrNot authored Jul 25, 2024
1 parent 647e86a commit 8d0c375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keycheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from licensing_stuff.keycutter import ProductKeyDecoder
from licensing_stuff.pkeyconfig import PKeyConfig
from requests import post
from datetime import datetime
import datetime
from html import escape
from uuid import uuid4
import xml.etree.ElementTree as ET
Expand Down Expand Up @@ -135,8 +135,8 @@ def query_key(pkey, pl_data, pkc, config_ext="Retail"):
"binding": generate_binding(),
"pkey": pkey,
"act_config_id": escape(act_config_id),
"systime": format_timestamp(datetime.utcnow()),
"utctime": format_timestamp(datetime.utcnow()),
"systime": format_timestamp(datetime.datetime.now(datetime.UTC)),
"utctime": format_timestamp(datetime.datetime.now(datetime.UTC)),
"secure_store_id": str(uuid4())
}
payload = REQ_TEMPLATE.format(**req_data)
Expand Down

0 comments on commit 8d0c375

Please sign in to comment.