Fixed wrong month reported in datetime

This commit is contained in:
Cosmo 2020-12-03 12:41:16 +00:00 committed by Davide Guidi
parent 9bcb98a9aa
commit dc79b9296c

View file

@ -64,7 +64,7 @@ def GetModemSignalInfo():
def GetDateTime(): def GetDateTime():
now = datetime.now() now = datetime.now()
mtkCmd.DateTimeInfo(int(now.strftime('%d')), mtkCmd.DateTimeInfo(int(now.strftime('%d')),
int(now.strftime('%m')), int(now.strftime('%m'))-1,
int(now.strftime('%Y')), int(now.strftime('%Y')),
int(now.strftime('%H')), int(now.strftime('%H')),
int(now.strftime('%M')), int(now.strftime('%M')),