diff --git a/src/main/java/io/github/dsheirer/map/TrackHistoryModel.java b/src/main/java/io/github/dsheirer/map/TrackHistoryModel.java index 44dd93d7..c1283f6a 100644 --- a/src/main/java/io/github/dsheirer/map/TrackHistoryModel.java +++ b/src/main/java/io/github/dsheirer/map/TrackHistoryModel.java @@ -1,13 +1,31 @@ +/* + * ***************************************************************************** + * Copyright (C) 2014-2024 Dennis Sheirer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see + * **************************************************************************** + */ + package io.github.dsheirer.map; -import javax.swing.table.AbstractTableModel; import java.text.DecimalFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collections; -import java.util.Comparator; import java.util.List; -import java.util.function.ToLongFunction; + +import javax.swing.table.AbstractTableModel; /** * Table model for track history. @@ -15,7 +33,7 @@ import java.util.function.ToLongFunction; public class TrackHistoryModel extends AbstractTableModel { private static final String[] COLUMNS = new String[]{"Time", "Latitude", "Longitude"}; - private SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat("HH:mm:ss"); + private SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); private DecimalFormat mDegreeFormat = new DecimalFormat("0.00000"); private List mTimestampedGeoPositions = new ArrayList<>(); private PlottableEntityHistory mPlottableEntityHistory;