diff options
Diffstat (limited to 'BaseTools/Scripts/GetUtcDateTime.py')
-rw-r--r-- | BaseTools/Scripts/GetUtcDateTime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Scripts/GetUtcDateTime.py b/BaseTools/Scripts/GetUtcDateTime.py index 3cfb6ac..fbe519a 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")
PARSER.print_help()
- today = datetime.datetime.utcnow()
+ today = datetime.datetime.now(datetime.timezone.utc)
if ARGS.year:
ReversedNumber = str(today.year)[::-1]
print (''.join(hex(ord(HexString))[2:] for HexString in ReversedNumber))
|