From 907c7d6ee0b4c57ad51506aee81e191ef20a4d4b Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 10 Feb 2012 00:27:20 +0100 Subject: [PATCH] Fix bug with date --- OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 0d3e58fad8..f1b0c9494f 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -297,9 +297,9 @@ public class MapInfoLayer extends OsmandMapLayer { if (Math.abs(toFindTime - cachedLeftTime) > 30000) { cachedLeftTime = toFindTime; if (DateFormat.is24HourFormat(map)) { - setText(DateFormat.format("kk:mm", toFindTime).toString(), null); //$NON-NLS-1$ + setText(DateFormat.format("k:mm", toFindTime).toString(), null); //$NON-NLS-1$ } else { - setText(DateFormat.format("k:mm", toFindTime).toString(), + setText(DateFormat.format("h:mm", toFindTime).toString(), DateFormat.format("aa", toFindTime).toString()); //$NON-NLS-1$ } return true;