diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 12:59:39 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 12:59:39 +1300 |
commit | 29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8 (patch) | |
tree | 98507be26e58b4708cde9d6711c0a4bbd3cdbaef /src/org/traccar/web/client/view | |
parent | 2a940c45a38cec42a6a85714f7941ee8613f48ee (diff) | |
download | trackermap-web-29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8.tar.gz trackermap-web-29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8.tar.bz2 trackermap-web-29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8.zip |
Archive default from value change
Diffstat (limited to 'src/org/traccar/web/client/view')
-rw-r--r-- | src/org/traccar/web/client/view/ArchiveView.java | 5 |
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); } |