diff --git a/app/Http/Controllers/Table/DeviceController.php b/app/Http/Controllers/Table/DeviceController.php index c5a635ab08..f40e915759 100644 --- a/app/Http/Controllers/Table/DeviceController.php +++ b/app/Http/Controllers/Table/DeviceController.php @@ -75,7 +75,7 @@ class DeviceController extends TableController 'hostname' => 'hostname', 'hardware' => 'hardware', 'os' => 'os', - 'uptime' => \DB::raw("IF(`status` = 1, `uptime`, `last_polled` - TIME('now'))"), + 'uptime' => \DB::raw("IF(`status` = 1, `uptime`, `last_polled` - NOW()))"), 'location' => 'location' ]; }