Skip to content

Commit

Permalink
Fix #314: Shows the correct date of OSM trace upload
Browse files Browse the repository at this point in the history
fix “Uploaded to OpenStreetMap” always reported as “1 Jan 1970 01:00:00” #314
  • Loading branch information
jamescr authored Feb 3, 2025
2 parents f80d8e2 + ce273a1 commit ff0cb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/net/osmtracker/activity/TrackDetail.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ protected void onResume() {
if (cursor.isNull(cursor.getColumnIndex(TrackContentProvider.Schema.COL_OSM_UPLOAD_DATE))) {
map.put(ITEM_VALUE, getResources().getString(R.string.trackdetail_osm_upload_notyet));
} else {
map.put(ITEM_VALUE, DateFormat.getDateTimeInstance().format(new Date(cursor.getLong(cursor.getColumnIndex(TrackContentProvider.Schema.COL_EXPORT_DATE)))));
map.put(ITEM_VALUE, DateFormat.getDateTimeInstance().format(new Date(cursor.getLong(cursor.getColumnIndex(TrackContentProvider.Schema.COL_OSM_UPLOAD_DATE)))));
}
data.add(map);

Expand Down

0 comments on commit ff0cb22

Please sign in to comment.