aboutsummaryrefslogtreecommitdiffstats
path: root/python/bowdst.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/bowdst.py')
-rw-r--r--python/bowdst.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/python/bowdst.py b/python/bowdst.py
index 6f3780ca..c532c2f1 100644
--- a/python/bowdst.py
+++ b/python/bowdst.py
@@ -34,8 +34,17 @@ def download_messages(em):
date_part, "%d %b %Y"
).date()
case "BowdstWires":
+ try:
+ date = datetime.datetime.strptime(
+ date_part, "%Y%m%d%H%M%S"
+ ).date()
+ except ValueError:
+ date = datetime.datetime.strptime(
+ date_part, "%d %b %Y%H%M%S"
+ ).date()
+ case "Live-cash":
date = datetime.datetime.strptime(
- date_part, "%d %b %Y%H%M%S"
+ date_part, "%Y%m%d%H%M%S"
).date()
case _:
warnings.warn(f"Unknown report type {file_type}")