Revize 4faab824
Přidáno uživatelem Jan Pašek před asi 4 roky(ů)
src/services/cryptography.py | ||
---|---|---|
281 | 281 |
|
282 | 282 |
# if date fields are found parse them into date objects |
283 | 283 |
if not_before is not None: |
284 |
not_before = time.strptime(not_before.group(1), NOT_AFTER_BEFORE_DATE_FORMAT) |
|
284 |
not_before = time.strptime(not_before.group(1).strip(), NOT_AFTER_BEFORE_DATE_FORMAT)
|
|
285 | 285 |
if not_after is not None: |
286 |
not_after = time.strptime(not_after.group(1), NOT_AFTER_BEFORE_DATE_FORMAT) |
|
286 |
not_after = time.strptime(not_after.group(1).strip(), NOT_AFTER_BEFORE_DATE_FORMAT)
|
|
287 | 287 |
|
288 | 288 |
# TODO wrapper class? |
289 | 289 |
# return it as a tuple |
Také k dispozici: Unified diff
Re #8569 Parsing datetime in cryptography.py service on windows (stripping \r)