From 9f91eada898d28d13bd7707190aeb7936dcf02e1 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 1 Aug 2024 09:09:45 +0800 Subject: [PATCH] fix https://github.com/rustdesk/rustdesk-server-pro/issues/338 --- res/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)