aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/client')
-rw-r--r--src/org/traccar/web/client/view/ArchiveView.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/web/client/view/ArchiveView.java b/src/org/traccar/web/client/view/ArchiveView.java
index d510cbe1..04ece4af 100644
--- a/src/org/traccar/web/client/view/ArchiveView.java
+++ b/src/org/traccar/web/client/view/ArchiveView.java
@@ -128,8 +128,9 @@ public class ArchiveView implements SelectionChangedEvent.SelectionChangedHandle
// Initialize with current time
Date now = new Date();
- fromDate.setValue(now);
- fromTime.setValue(now);
+ Date from = new Date(now.getTime() - 60 * 60 * 1000);
+ fromDate.setValue(from);
+ fromTime.setValue(from);
toDate.setValue(now);
toTime.setValue(now);
}