From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 673DEAC11BD for ; Tue, 23 Apr 2024 14:41:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nGt/1K0uaS48lDpDGn0azFLlfEnOLv/mtYUHe872N1U=; c=relaxed/simple; d=groups.io; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20240206; t=1713883300; v=1; b=cCsTt9pVi4amHMniswhe7z3B8ND/oi++To0kdsIwac+yPAcAMggg3+vMm0sIWsJ5Va3pTePK FWK/cFeSu9p7LTQLDrVyhAcJ8VR6U8twJ6CtQ343RLTnkfHXgWrt8/rArPS1TPqa42eZ/dJNfLy IiyDnuu3BktgfBaSpxxIqMMhHA05F5ucXMUa/Ph+04rF/h0S2Dx68sx+xzhvQ8EtKjL5P7E2skq a8mZILaWBeLfsaLR5czDErGnwvdrcRsSlkFuep1ZiVHgloByrSEy4khpPhvC+AeRUqoH9uD7VwB hwX4fb1KY0hfl0WyhIBQpo9ae+tWdz+V1wTsyG2uxsXxw== X-Received: by 127.0.0.2 with SMTP id jMvxYY7687511xtdE1paYSNF; Tue, 23 Apr 2024 07:41:40 -0700 X-Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web11.20339.1713883297411498250 for ; Tue, 23 Apr 2024 07:41:39 -0700 X-Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id C7E32DDA78F for ; Tue, 23 Apr 2024 22:41:30 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id C3B7FDDA787 for ; Tue, 23 Apr 2024 22:41:30 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by cxsh.intel-email.com (Postfix) with SMTP id 1FAFEDDA789 for ; Tue, 23 Apr 2024 22:41:24 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([114.92.234.250]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Tue, 23 Apr 2024 22:41:18 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 114.92.234.250 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: , Cc: , "'Rebecca Cran'" , "'Bob Feng'" , "'Yuwei Chen'" References: <20240421125033.1492-1-gua.guo@intel.com> <20240421125033.1492-2-gua.guo@intel.com> In-Reply-To: <20240421125033.1492-2-gua.guo@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHYxIDEvMV0gQmFzZVRvb2xzL0dldFV0Y0RhdGVUaW1lLnB5OiBQeXRob24gMy4xMiBzdXBwb3J0?= Date: Tue, 23 Apr 2024 22:41:19 +0800 Message-ID: <01c101da958c$4e2cf460$ea86dd20$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQFiBeVmKYWxwihQEgSfSWnBtcESZQKED0/VslLsVCA= Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 23 Apr 2024 07:41:39 -0700 Resent-From: gaoliming@byosoft.com.cn Reply-To: devel@edk2.groups.io,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 6AYDm6RXs2k4TWfJGnHMmo9Ix7686176AA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=cCsTt9pV; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED Guo, Gua > =B7=A2=CB=CD=CA=B1=BC=E4: 2024=C4=EA4=D4=C221=C8=D5 20:51 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: gua.guo@intel.com; saloni.kasbekar@intel.com; Rebecca Cran > ; Liming Gao ; Bob Feng > ; Yuwei Chen > =D6=F7=CC=E2: [edk2-devel] [PATCH v1 1/1] BaseTools/GetUtcDateTime.py: Py= thon > 3.12 support >=20 > From: Gua Guo >=20 > Ref to https://docs.python.org/3/whatsnew/3.12.html > utcnow() and utcfromtimestamp() are deprecated > Prevent use it cause build error. >=20 > Cc: Rebecca Cran > Cc: Liming Gao > Cc: Bob Feng > Cc: Yuwei Chen > Signed-off-by: Gua Guo > --- > BaseTools/Scripts/GetUtcDateTime.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/BaseTools/Scripts/GetUtcDateTime.py > b/BaseTools/Scripts/GetUtcDateTime.py > index 3cfb6ac2ae..6764fb22a7 100644 > --- a/BaseTools/Scripts/GetUtcDateTime.py > +++ b/BaseTools/Scripts/GetUtcDateTime.py > @@ -29,7 +29,7 @@ def Main(): > print ("ERROR: At least one argument is required!\n") >=20 > PARSER.print_help() >=20 >=20 >=20 > - today =3D datetime.datetime.utcnow() >=20 > + today =3D datetime.datetime.now(datetime.UTC) >=20 > if ARGS.year: >=20 > ReversedNumber =3D str(today.year)[::-1] >=20 > print (''.join(hex(ord(HexString))[2:] for HexString in > ReversedNumber)) >=20 > -- > 2.39.2.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#118054): > https://edk2.groups.io/g/devel/message/118054 > Mute This Topic: https://groups.io/mt/105650842/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=20 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118145): https://edk2.groups.io/g/devel/message/118145 Mute This Topic: https://groups.io/mt/105690657/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-