Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix https://github.com/rustdesk/rustdesk-server-pro/issues/338

rustdesk9f91eada898d
diff --git a/res/devices.py b/res/devices.py
index 4259abd41..d72614b70 100755
--- a/res/devices.py
+++ b/res/devices.py
@@ -46,7 +46,7 @@ def view(
devices.append(device)
continue
last_online = datetime.strptime(
- device["last_online"], "%Y-%m-%dT%H:%M:%S"
+ device["last_online"].split(".")[0], "%Y-%m-%dT%H:%M:%S"
) # assuming date is in this format
if (datetime.utcnow() - last_online).days >= offline_days:
devices.append(device)