]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: better date parsing
authorDaniel Axtens <dja@axtens.net>
Wed, 28 Jun 2017 07:48:48 +0000 (17:48 +1000)
committerStephen Finucane <stephen@that.guru>
Wed, 28 Jun 2017 20:41:28 +0000 (21:41 +0100)
commit06b5f052747adb3c903e6c5faae6eef5defdd75b
tree732a2a50bd1016e93236ee3e3b29a88db399ae3e
parenta128310bfa1c34aaba832fd488213005f2ba997c
parser: better date parsing

It turns out that there is a lot that can go wrong in parsing a
date. OverflowError, ValueError and OSError have all been observed.

If these go wrong, substitute the current datetime.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
patchwork/parser.py