Something change in the date format...
This commit is contained in:
parent
fb18e25e90
commit
3c44682cb8
1 changed files with 2 additions and 2 deletions
4
check.py
4
check.py
|
@ -220,10 +220,10 @@ if __name__ == '__main__':
|
|||
args = parser.parse_args()
|
||||
|
||||
with subprocess.Popen(["date", "-d", args.soft_max_submission, "-u", "-Iseconds"], stdout=subprocess.PIPE) as f:
|
||||
SOFT_MAX_SUBMISSION = datetime.strptime(f.stdout.read().strip().decode(), "%Y-%m-%dT%H:%M:%S%z")
|
||||
SOFT_MAX_SUBMISSION = datetime.strptime(f.stdout.read().strip().decode().replace(":", ""), "%Y-%m-%dT%H%M%S%z")
|
||||
|
||||
with subprocess.Popen(["date", "-d", args.hard_max_submission, "-u", "-Iseconds"], stdout=subprocess.PIPE) as f:
|
||||
HARD_MAX_SUBMISSION = datetime.strptime(f.stdout.read().strip().decode(), "%Y-%m-%dT%H:%M:%S%z")
|
||||
HARD_MAX_SUBMISSION = datetime.strptime(f.stdout.read().strip().decode().replace(":", ""), "%Y-%m-%dT%H%M%S%z")
|
||||
|
||||
ALTERNATE_RESOLUTIONS = args.alternate_resolutions
|
||||
SEND_TO_REALUSER = args.real_send
|
||||
|
|
Reference in a new issue