summaryrefslogtreecommitdiff
path: root/ftp-list.py
diff options
context:
space:
mode:
Diffstat (limited to 'ftp-list.py')
-rwxr-xr-xftp-list.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ftp-list.py b/ftp-list.py
index 057b117..8aa073c 100755
--- a/ftp-list.py
+++ b/ftp-list.py
@@ -126,6 +126,7 @@ def format_type_fact(type):
return "?"
def dt_from_ftp(timeval):
+ timeval = timeval.split(".")[0]
return datetime.strptime(timeval, "%Y%m%d%H%M%S").replace(tzinfo=timezone.utc)
def format_mlsd(name, facts):