aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/app/view/edit/Devices.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index 7c1f9358..b5b6badd 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -163,6 +163,9 @@ Ext.define('Traccar.view.edit.Devices', {
if (value) {
seconds = Math.floor((new Date() - value) / 1000);
+ if (seconds < 0) {
+ seconds = 0;
+ }
interval = Math.floor(seconds / 86400);
if (interval > 1) {
return interval + ' ' + Strings.sharedDays;