diff --git a/PFERD/crawl/ilias/kit_ilias_html.py b/PFERD/crawl/ilias/kit_ilias_html.py
index 2c37816..a1882c4 100644
--- a/PFERD/crawl/ilias/kit_ilias_html.py
+++ b/PFERD/crawl/ilias/kit_ilias_html.py
@@ -514,8 +514,11 @@ class IliasPage:
f"td.std:nth-child({index})"
).getText().strip()
if re.search(r"\d+\.\d+.\d+ - \d+:\d+", modification_string):
+ log.explain(f"Converting {modification_string!r}")
modification_time = datetime.strptime(modification_string, "%d.%m.%Y - %H:%M")
break
+ else:
+ log.explain(f"Date has wrong format: {modification_string!r}")
if modification_time is None:
log.warn(f"Could not determine upload time for {link}")
diff --git a/PFERD/output_dir.py b/PFERD/output_dir.py
index e9e9b93..0b000a6 100644
--- a/PFERD/output_dir.py
+++ b/PFERD/output_dir.py
@@ -415,6 +415,7 @@ class OutputDirectory:
def _update_metadata(self, info: DownloadInfo) -> None:
if mtime := info.heuristics.mtime:
+ log.explain(f"Setting mtime to {mtime}")
mtimestamp = mtime.timestamp()
os.utime(info.local_path, times=(mtimestamp, mtimestamp))