Skip to content
Permalink
Browse files
Fix date edition
  • Loading branch information
vshcherb committed Oct 27, 2012
1 parent a452460 commit 5337199f26a766bbce52083647c20c116eecaaf8
Showing 1 changed file with 5 additions and 1 deletion.
@@ -571,8 +571,12 @@ public List<String> indexingMaps(final IProgress progress) {
} else {
if(index.isBasemap()) {
basemapFileNames.add(f.getName());
}
long dateCreated = index.getDateCreated();
if(dateCreated == 0) {
dateCreated = f.lastModified();
}
indexFileNames.put(f.getName(), MessageFormat.format("{0,date,dd.MM.yyyy}", new Date(f.lastModified()))); //$NON-NLS-1$
indexFileNames.put(f.getName(), MessageFormat.format("{0,date,dd.MM.yyyy}", new Date(dateCreated))); //$NON-NLS-1$
for(String rName : index.getRegionNames()) {
// skip duplicate names (don't make collision between getName() and name in the map)
// it can be dangerous to use one file to different indexes if it is multithreaded

0 comments on commit 5337199

Please sign in to comment.