diff --git a/dandi/download.py b/dandi/download.py index f9cd05167..30c896042 100644 --- a/dandi/download.py +++ b/dandi/download.py @@ -750,9 +750,9 @@ def _download_file( } # TODO: dissolve attrs and pass specific mtime? - if mtime: + if mtime is not None: yield {"status": "setting mtime"} - os.utime(path, (time.time(), ensure_datetime(mtime).timestamp())) + os.utime(path, (time.time(), mtime.timestamp())) yield {"status": "done"}