diff --git a/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java b/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java index b910ca75e0..6bc100aece 100644 --- a/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java +++ b/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionPlugin.java @@ -526,13 +526,9 @@ public class ParkingPositionPlugin extends OsmandPlugin { } String getFormattedTime(long timeInMillis) { - Time time = new Time(); - time.set(timeInMillis); - SimpleDateFormat sdf = new SimpleDateFormat("HH:mm dd.MM.yyyy", Locale.getDefault()); - if (!DateFormat.is24HourFormat(app)) { - sdf = new SimpleDateFormat("hh:mm a dd.MM.yyyy", Locale.getDefault()); - } - return sdf.format(new Date(time.toMillis(false))); + java.text.DateFormat dateFormat = DateFormat.getMediumDateFormat(app); + java.text.DateFormat timeFormat = DateFormat.getTimeFormat(app); + return timeFormat.format(timeInMillis) + " " + dateFormat.format(timeInMillis); } String getFormattedTimeInterval(long timeInMillis, Activity ctx) {