Fix modified time of gpx file (was 0)
This commit is contained in:
parent
d62ba1b075
commit
e39b0ed58b
1 changed files with 4 additions and 0 deletions
|
@ -1592,6 +1592,10 @@ public class GPXUtilities {
|
|||
fis = new FileInputStream(f);
|
||||
GPXFile file = loadGPXFile(fis);
|
||||
file.path = f.getAbsolutePath();
|
||||
if(file.modifiedTime == 0) {
|
||||
file.modifiedTime = f.lastModified();
|
||||
}
|
||||
|
||||
try {
|
||||
fis.close();
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in a new issue