aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/web/client/view/ArchiveView.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/org/traccar/web/client/view/ArchiveView.java b/src/org/traccar/web/client/view/ArchiveView.java
index 28291d0d..9cc579f8 100644
--- a/src/org/traccar/web/client/view/ArchiveView.java
+++ b/src/org/traccar/web/client/view/ArchiveView.java
@@ -132,12 +132,14 @@ public class ArchiveView implements SelectionChangedEvent.SelectionChangedHandle
grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
// Initialize with current time
+ long min = 60 * 1000;
Date now = new Date();
- Date from = new Date(now.getTime() - 60 * 60 * 1000);
+ Date to = new Date(((now.getTime() + 15 * min) / (15 * min)) * 15 * min);
+ Date from = new Date(to.getTime() - 60 * min);
fromDate.setValue(from);
fromTime.setValue(from);
- toDate.setValue(now);
- toTime.setValue(now);
+ toDate.setValue(to);
+ toTime.setValue(to);
}
@Override