From 75ac8d279622311851beaac1f1098a537d4e00d7 Mon Sep 17 00:00:00 2001 From: Ovv Date: Sun, 4 Mar 2018 13:10:49 +0100 Subject: [PATCH] Log detected document date with isoformat --- src/paperless_tesseract/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index c29775b39..09fdd4471 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -242,7 +242,7 @@ class RasterisedDocumentParser(DocumentParser): break if date is not None: - self.log("info", "Detected document date " + date.strftime("%x") + + self.log("info", "Detected document date " + date.isoformat() + " based on string " + datestring) else: self.log("info", "Unable to detect date for document")